Silk Trail
Flat silk ribbons stream behind the pointer, one per colour, and fold back into it when it stops.
pixikit.com/docs/effects/silk-trail
Customize
Scope
Colors3 of 10
Shape
Thickness30px
Length1.4
Spread18px
Stiffness0.50
Bounce0.50
Wave0.00
Softness0.00
Opacity1.00
Fade
Background color
Dpr2.00
Props
16| Name | Type | Default | Description |
|---|---|---|---|
scope | "container" | "page" | "container" | Where the ribbons follow the pointer: the nearest positioned parent, or the whole page. |
colors | string[] | ["#3847ff", "#7c84ff", "#c7cbff"] | One ribbon is drawn for each colour, from back to front; any CSS colours. |
shape | "lens" | "comet" | "even" | "lens" | Width along each ribbon: `lens` swells in the middle, `comet` is widest at the pointer, `even` stays level. |
thickness | number | 30 | Width of each ribbon at its widest, in pixels. |
length | number | 1.4 | How far the ribbons trail behind the pointer; higher values leave longer, lazier trails. |
spread | number | 18 | Space between the ribbons, in pixels. |
stiffness | number | 0.5 | How tightly the ribbons chase the pointer, 0 to 1. |
bounce | number | 0.5 | How far the ribbons overshoot and swing back when the pointer stops or turns, 0 to 1. |
wave | number | 0 | A wave that rolls along each ribbon, 0 to 1. |
softness | number | 0 | Blurs the ribbon edges into soft light trails, 0 to 1. |
opacity | number | 1 | Opacity of the ribbons. |
fade | boolean | false | Fades each ribbon out toward its tail. |
backgroundColor | string | "transparent" | Colour behind the ribbons; transparent by default. |
dpr | number | 2 | Highest device pixel ratio drawn; capped at 2. |
className | string | None | |
style | CSSProperties | None |