Drops of iridescent liquid glass drifting in the dark, merging and pulling apart as they pass. The cursor drags a drop of its own through them.
Ribbons of iridescent glass drifting through the dark, twisting to bright edges side-on and blooming with colour face-on, like light on a soap film.
Customize
Usage
import { GlassRibbons } from "@/components/motionkit/glass-ribbons";
<GlassRibbons
className="h-[32rem] rounded-3xl"
>
<h1>Your hero</h1>
</GlassRibbons>Motion
The exact curves this component runs, plotted with Motion's own maths.
Ribbons twist
Runs on its own
AI and product launches, creative tools, music and audio brands, and premium tech heroes that want something modern and dimensional.
Each ribbon is a band around a slow wave. A second wave describes its twist, and the band's width follows it, so the ribbon narrows to a line where it turns side-on and widens where it faces you, which reads as a strip turning in 3D. Its colour comes from a cosine palette indexed by the twist, which mimics thin-film iridescence, and it's mixed translucently over the background with a bright line along one edge and a rim all round. Nearby ribbons bend towards the pointer.
| Prop | Type | Default | Description |
|---|---|---|---|
| background | string | "#07080D" | Colour behind the ribbons. |
| count | number | 3 | Number of ribbons, 1 to 5. |
| iridescence | number | 0.8 | Colour shift as they twist, 0 (clear) to 1. |
| speed | number | 1 | Drift and twist speed. 0 holds them still. |
| interactive | boolean | true | Bend nearby ribbons towards the pointer. |
| 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/glass-ribbons. It saves the file to components/motionkit and installs its dependencies.
Glass Ribbons 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, the ribbons are drawn once and hold still. It also stops rendering off screen.
Drops of iridescent liquid glass drifting in the dark, merging and pulling apart as they pass. The cursor drags a drop of its own through them.
A piece of studio glass turning slowly in the dark, a ring, sphere or rounded cube, with softbox strips sliding across it and light splitting into colour at its edges.
The colours of a soap bubble spread across the dark: bands of interference colour swirl, streak and fade to black where the film is thinnest. The cursor stirs it.
Made of light
The live preview is free to explore. Plus unlocks the source for Glass Ribbons 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 { GlassRibbons } from "@/components/motionkit/glass-ribbons";
<GlassRibbons
className="h-[32rem] rounded-3xl"
>
<h1>Your hero</h1>
</GlassRibbons>Motion
The exact curves this component runs, plotted with Motion's own maths.
Ribbons twist
Runs on its own
Made of light