A glowing portal of warp-speed light you can click to jump through
| Name | Type | Default | Description |
|---|---|---|---|
primaryColor | string | "#C084FC" | First colour of the light streaks. |
secondaryColor | string | "#E879F9" | Second colour of the light streaks. |
centerColor | string | "#F0ABFC" | Colour of the glowing rim and halo. |
ballBgColor | string | "auto" | Fill behind the streaks inside the portal. Auto is transparent on dark pages and a dark window on light pages. Accepts any colour or transparent. |
mode | "streaks" | "tunnel" | "vortex" | "streaks" | How the light travels: sideways streaks, a warp tunnel flying out of the centre, or a spiral vortex. |
speed | number | 0.25 | Speed of the streaks. |
density | number | 1 | How many particles each layer holds. |
layerCount | number | 7 | Number of particle layers, from 1 to 7. |
particleSize | number | 1 | Size of each particle of light. |
streakLength | number | 1 | How long the light streaks are stretched. |
flowAngle | number | 0 | Direction of the streaks in degrees (streaks mode). |
colorVariety | number | 0.6 | How much each particle varies between the two colours. |
waveAmplitude | number | 1 | Strength of the slow sway. |
waveFrequency | number | 0.75 | Speed of the slow sway. |
verticalDistortion | number | 0.5 | Waviness across the streaks. |
depthIntensity | number | 0.75 | How strongly light gathers toward the rim, giving depth. |
brightness | number | 1 | Overall brightness. |
scale | number | 1.5 | Size of the portal in the frame. |
rimWidth | number | 1 | Width of the glowing rim. |
rimGlow | number | 1 | Brightness of the rim and the halo around it. |
hoverTilt | number | 1 | How far the flow leans toward the pointer. |
interactive | boolean | true | Click to jump into hyperspace: the streaks stretch and race, then settle. |
boostStrength | number | 1 | Strength of the click boost. |
intro | boolean | true | Springs the portal open when it appears. |
paused | boolean | false | Stops the motion. Reduced-motion users get a still portal. |
dpr | number | 2 | Maximum device pixel ratio for the canvas. |
ref | { boost } | — | boost(strength?) triggers the hyperspace jump from code. |
className | string | — | Classes for the root, which fills its positioned parent. |
style | CSSProperties | — | Inline styles for the root element. |
primaryColorstringFirst colour of the light streaks.
"#C084FC"secondaryColorstringSecond colour of the light streaks.
"#E879F9"centerColorstringColour of the glowing rim and halo.
"#F0ABFC"ballBgColorstringFill behind the streaks inside the portal. Auto is transparent on dark pages and a dark window on light pages. Accepts any colour or transparent.
"auto"mode"streaks" | "tunnel" | "vortex"How the light travels: sideways streaks, a warp tunnel flying out of the centre, or a spiral vortex.
"streaks"speednumberSpeed of the streaks.
0.25densitynumberHow many particles each layer holds.
1layerCountnumberNumber of particle layers, from 1 to 7.
7particleSizenumberSize of each particle of light.
1streakLengthnumberHow long the light streaks are stretched.
1flowAnglenumberDirection of the streaks in degrees (streaks mode).
0colorVarietynumberHow much each particle varies between the two colours.
0.6waveAmplitudenumberStrength of the slow sway.
1waveFrequencynumberSpeed of the slow sway.
0.75verticalDistortionnumberWaviness across the streaks.
0.5depthIntensitynumberHow strongly light gathers toward the rim, giving depth.
0.75brightnessnumberOverall brightness.
1scalenumberSize of the portal in the frame.
1.5rimWidthnumberWidth of the glowing rim.
1rimGlownumberBrightness of the rim and the halo around it.
1hoverTiltnumberHow far the flow leans toward the pointer.
1interactivebooleanClick to jump into hyperspace: the streaks stretch and race, then settle.
trueboostStrengthnumberStrength of the click boost.
1introbooleanSprings the portal open when it appears.
truepausedbooleanStops the motion. Reduced-motion users get a still portal.
falsedprnumberMaximum device pixel ratio for the canvas.
2ref{ boost }boost(strength?) triggers the hyperspace jump from code.
—classNamestringClasses for the root, which fills its positioned parent.
—styleCSSPropertiesInline styles for the root element.
—