Sunlight on the floor of a pool: a shifting web of light over deep water, edged with a faint rainbow, that swells as the cursor passes.
A ribbon woven from dozens of fine threads of spectral light, gathering into a bright seam where it turns side-on and fanning into a veil of colour.
Woven light
Customize
Usage
import { SpectralStrands } from "@/components/motionkit/spectral-strands";
<SpectralStrands
className="h-[32rem] rounded-3xl"
>
<h1>Your hero</h1>
</SpectralStrands>Motion
The exact curves this component runs, plotted with Motion's own maths.
Ribbon twists
Runs on its own
Audio and music products, AI and data launches, science and research sites, and elegant dark heroes that need movement without clutter.
The ribbon has a centre line that drifts on two slow waves and a width that follows a slow twist. Each thread sits at its own fixed share of that width, so where the twist turns the ribbon side-on the threads crowd together into a bright seam, and where it faces you they spread into a veil. Every thread is drawn as a very sharp exponential falloff from its line plus a faint wide glow, coloured from a spectrum by its position across the ribbon, and the threads add together, so overlapping light brightens naturally.
| Prop | Type | Default | Description |
|---|---|---|---|
| colors | [string] | ["#05060B"] | The dark behind the strands. |
| threads | number | 36 | Threads in the ribbon, 4 to 48. |
| spread | number | 1 | How wide the ribbon opens, 0.3 to 2. |
| interactive | boolean | true | Let the ribbon bend towards the pointer. |
| speed | number | 1 | How fast it moves. 0 holds it still. |
| children | ReactNode | — | Your content, layered above. |
How we audit: the WCAG 2.2 animation checklist and respecting reduced motion in React.
Yes. The file starts with "use client", so you can import it straight into a Server Component page or layout. It works in Vite as is, and in Astro as a React island.
Nothing beyond React and Tailwind CSS v4. There is no MotionKit package and no Tailwind config to add.
Yes, with MotionKit Plus. Add the @motionkit registry and your personal token to components.json (the snippet is on your account page), then run npx shadcn@latest add @motionkit/spectral-strands. It saves the file to components/motionkit and installs its dependencies.
Spectral Strands is part of MotionKit Plus (£12 / $15 / €14 a month or £96 / $120 / €112 a year). The live preview and playground are free to explore; Plus unlocks its source code, every customisation control and commercial use.
With reduced motion on, it's drawn once and holds still. It also stops rendering off screen.
Sunlight on the floor of a pool: a shifting web of light over deep water, edged with a faint rainbow, that swells as the cursor passes.
Above the clouds at golden hour: banks of cloud drift past in three depths, lit on the edges facing a glowing sun, parting as the cursor passes.
A calm sea at night: stars over the horizon, a haloed moon, and a long path of glitter on the water that shivers with every swell. The moon drifts after the cursor.
The live preview is free to explore. Plus unlocks the source for Spectral Strands and every other premium component.
Not ready for Plus? A free account unlocks 4 premium components, Depth Card, Rolling Text, Dot Wave and Confetti Button, with no card needed.
Customize
Usage
import { SpectralStrands } from "@/components/motionkit/spectral-strands";
<SpectralStrands
className="h-[32rem] rounded-3xl"
>
<h1>Your hero</h1>
</SpectralStrands>Motion
The exact curves this component runs, plotted with Motion's own maths.
Ribbon twists
Runs on its own
Woven light