Skip to content
PixiKit

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
NameTypeDefaultDescription
scope"container" | "page""container"Where the ribbons follow the pointer: the nearest positioned parent, or the whole page.
colorsstring[]["#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.
thicknessnumber30Width of each ribbon at its widest, in pixels.
lengthnumber1.4How far the ribbons trail behind the pointer; higher values leave longer, lazier trails.
spreadnumber18Space between the ribbons, in pixels.
stiffnessnumber0.5How tightly the ribbons chase the pointer, 0 to 1.
bouncenumber0.5How far the ribbons overshoot and swing back when the pointer stops or turns, 0 to 1.
wavenumber0A wave that rolls along each ribbon, 0 to 1.
softnessnumber0Blurs the ribbon edges into soft light trails, 0 to 1.
opacitynumber1Opacity of the ribbons.
fadebooleanfalseFades each ribbon out toward its tail.
backgroundColorstring"transparent"Colour behind the ribbons; transparent by default.
dprnumber2Highest device pixel ratio drawn; capped at 2.
classNamestringNone
styleCSSPropertiesNone

More interaction effects in Pro

View all

Related