- Docs
- Components
- Backgrounds
- Swirl Blend
Vivid colors swirling and blending like silk
| Name | Type | Default | Description |
|---|---|---|---|
colors | [string, string] | ["#8A1F8F", "#FF4A9E"] | The two colours the fluid blends between. A vivid bridge tone and a quiet valley tone are derived from them. |
backgroundColor | string | "transparent" | Page colour the valleys settle toward. Transparent reads the colour behind the component. Light colours switch to a light palette. |
speed | number | 0.4 | Speed of the swirl. |
scale | number | 7 | Size of the pattern. Higher values give smaller, denser curls. |
warp | number | 1 | How strongly the bands curl. |
detail | number | 5 | Warp passes, from 1 to 10. More passes fold the bands into finer curls. |
sheen | number | 0.4 | Silk shading, with soft highlights where the bands fold. |
contrast | number | 1 | Spread between the quiet valleys and the bright crests. |
saturation | number | 1 | Colour intensity. |
grain | number | 0 | Film grain over the colour. |
dropSize | number | 1 | Size of the ink drop a click releases. |
interactive | boolean | true | Click to drop ink of the next palette colour into the swirl. Moving the pointer stirs it faster for a moment. |
intro | boolean | true | Inks the colour in band by band when the swirl appears. |
paused | boolean | false | Stops the motion. Reduced-motion users get a still frame. |
dpr | number | 2 | Maximum device pixel ratio for the canvas. |
width | string | number | "100%" | Width of the component. |
height | string | number | "100%" | Height of the component. |
ref | { drop, replay } | - | drop(x?, y?) releases ink at a point given from 0 to 1. replay() restarts the intro. |
children | ReactNode | - | Content layered above the swirl. |
className | string | - | Classes for the root element. |
style | CSSProperties | - | Inline styles for the root element. |
colors[string, string]The two colours the fluid blends between. A vivid bridge tone and a quiet valley tone are derived from them.
["#8A1F8F", "#FF4A9E"]backgroundColorstringPage colour the valleys settle toward. Transparent reads the colour behind the component. Light colours switch to a light palette.
"transparent"speednumberSpeed of the swirl.
0.4scalenumberSize of the pattern. Higher values give smaller, denser curls.
7warpnumberHow strongly the bands curl.
1detailnumberWarp passes, from 1 to 10. More passes fold the bands into finer curls.
5sheennumberSilk shading, with soft highlights where the bands fold.
0.4contrastnumberSpread between the quiet valleys and the bright crests.
1saturationnumberColour intensity.
1grainnumberFilm grain over the colour.
0dropSizenumberSize of the ink drop a click releases.
1interactivebooleanClick to drop ink of the next palette colour into the swirl. Moving the pointer stirs it faster for a moment.
trueintrobooleanInks the colour in band by band when the swirl appears.
truepausedbooleanStops the motion. Reduced-motion users get a still frame.
falsedprnumberMaximum device pixel ratio for the canvas.
2widthstring | numberWidth of the component.
"100%"heightstring | numberHeight of the component.
"100%"ref{ drop, replay }drop(x?, y?) releases ink at a point given from 0 to 1. replay() restarts the intro.
-childrenReactNodeContent layered above the swirl.
-classNamestringClasses for the root element.
-styleCSSPropertiesInline styles for the root element.
-