Toggle Sidebar B
AppearanceLight & dark mode D

Ribbons

Flowing responsive ribbons/cursor trail driven by physics and pointer motion.

Default

Every prop is wired to the controls underneath. Move the pointer across the stage and the ribbons chase it.

Dark previewReplay previewOpen in new tab

Hover Me.

Customize

Ribbon Count1
Thickness30
Speed0.5
Max Age500

API Reference

Ribbons

PropTypeDefaultDescription
colorsstring[]['#5227FF']An array of color strings to be used for the ribbons.
baseSpringnumber0.03Base spring factor for the physics controlling ribbon motion.
baseFrictionnumber0.9Base friction factor that dampens the ribbon motion.
baseThicknessnumber30The base thickness of the ribbons.
offsetFactornumber0.05A factor to horizontally offset the starting positions of the ribbons.
maxAgenumber500Delay in milliseconds controlling how long the ribbon trails extend.
pointCountnumber50The number of points that make up each ribbon.
speedMultipliernumber0.6Multiplier that adjusts how fast trailing points interpolate towards the head.
enableFadebooleanfalseIf true, a fade effect is applied along the length of the ribbon.
enableShaderEffectbooleanfalseIf true, an additional sine-wave shader effect is applied to the ribbons.
effectAmplitudenumber2The amplitude of the shader displacement effect.
backgroundColornumber[][0, 0, 0, 0]An RGBA array specifying the clear color for the renderer.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • Purely decorative canvas that follows the pointer. Leave it out, or keep the ribbons thin, for users who prefer reduced motion.