Colored liquid refracted through fluted glass
| Name | Type | Default | Description |
|---|---|---|---|
colors | [string, string] | ["#5227FF", "#FF9FFC"] | Two liquid colours. Strokes up and to the right lean towards the second, strokes down and to the left towards the first. |
backgroundColor | string | "#050505" | Surface behind the glass. Light surfaces switch to soft shadows instead of highlights. Pass "transparent" to show the page. |
texture | number | 0.6 | Strength of the slow swirl in the surface behind the glass. |
angle | number | 28 | Direction of the flutes in degrees. 0 gives vertical bars. |
flutes | number | 8 | Number of flutes across the width of the frame. |
refraction | number | 4 | How strongly each flute bends and compresses the light behind it. |
aberration | number | 0.61 | Splits red, green and blue at the flute seams. |
softness | number | 0.5 | 0 keeps each flute flat in the middle with sharp seams, 1 bends it in a gentle curve. |
wave | number | 0.06 | How far the flutes sway along their length. |
waveFrequency | number | 1.5 | How many sways fit along each flute. |
drift | number | 0 | Slowly slides the flutes sideways. Negative reverses it. |
highlight | number | 0.12 | Strength of the specular line on each flute. |
highlightSoftness | number | 0.3 | 0 keeps the highlight pin sharp, 1 spreads it into a sheen. |
lightAngle | number | -90 | Where the highlight sits across each flute, in degrees. |
radius | number | 6.5 | Size of the liquid stroke each pointer movement pours in. |
momentum | number | 13 | How hard the pointer stirs the liquid and how long the flow keeps going after it stops. |
swirl | number | 0 | Lets the liquid behave like a full fluid that curls into eddies. 0 keeps each movement a single smooth stroke. |
intensity | number | 1 | How much coloured liquid the pointer pours in. |
trail | number | 1 | How slowly the liquid fades once the pointer rests. |
autoplay | boolean | true | Stirs the liquid along a slow wandering path whenever the pointer has been away for a moment, so the surface never sits empty on touch screens. |
interactive | boolean | true | Lets the pointer stir coloured liquid behind the glass. |
grain | number | 0.05 | Film grain, weighted towards the darker areas. |
speed | number | 1 | Speed of the surface swirl, the flute sway and the autoplay light. |
paused | boolean | false | Freezes the animation. |
dpr | number | 1.5 | Upper bound for the device pixel ratio. |
className | string | — | Classes for the root element. Give it a height. |
style | CSSProperties | — | Inline styles for the root element. |
children | ReactNode | — | Content layered above the glass. |
colors[string, string]Two liquid colours. Strokes up and to the right lean towards the second, strokes down and to the left towards the first.
["#5227FF", "#FF9FFC"]backgroundColorstringSurface behind the glass. Light surfaces switch to soft shadows instead of highlights. Pass "transparent" to show the page.
"#050505"texturenumberStrength of the slow swirl in the surface behind the glass.
0.6anglenumberDirection of the flutes in degrees. 0 gives vertical bars.
28flutesnumberNumber of flutes across the width of the frame.
8refractionnumberHow strongly each flute bends and compresses the light behind it.
4aberrationnumberSplits red, green and blue at the flute seams.
0.61softnessnumber0 keeps each flute flat in the middle with sharp seams, 1 bends it in a gentle curve.
0.5wavenumberHow far the flutes sway along their length.
0.06waveFrequencynumberHow many sways fit along each flute.
1.5driftnumberSlowly slides the flutes sideways. Negative reverses it.
0highlightnumberStrength of the specular line on each flute.
0.12highlightSoftnessnumber0 keeps the highlight pin sharp, 1 spreads it into a sheen.
0.3lightAnglenumberWhere the highlight sits across each flute, in degrees.
-90radiusnumberSize of the liquid stroke each pointer movement pours in.
6.5momentumnumberHow hard the pointer stirs the liquid and how long the flow keeps going after it stops.
13swirlnumberLets the liquid behave like a full fluid that curls into eddies. 0 keeps each movement a single smooth stroke.
0intensitynumberHow much coloured liquid the pointer pours in.
1trailnumberHow slowly the liquid fades once the pointer rests.
1autoplaybooleanStirs the liquid along a slow wandering path whenever the pointer has been away for a moment, so the surface never sits empty on touch screens.
trueinteractivebooleanLets the pointer stir coloured liquid behind the glass.
truegrainnumberFilm grain, weighted towards the darker areas.
0.05speednumberSpeed of the surface swirl, the flute sway and the autoplay light.
1pausedbooleanFreezes the animation.
falsedprnumberUpper bound for the device pixel ratio.
1.5classNamestringClasses for the root element. Give it a height.
—styleCSSPropertiesInline styles for the root element.
—childrenReactNodeContent layered above the glass.
—