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.
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.
Customize
Usage
import { GlassBlobs } from "@/components/motionkit/glass-blobs";
<GlassBlobs
className="h-[32rem] rounded-3xl"
>
<h1>Your hero</h1>
</GlassBlobs>Motion
The exact curves this component runs, plotted with Motion's own maths.
Blobs drift and merge
Runs on its own
AI, fintech and product launches, creative tools, and premium heroes that want something fluid, dimensional and unmistakably modern.
The scene is raymarched: for every pixel a ray steps forward by the distance to the nearest surface until it lands on one. The surface is several spheres joined with a smooth minimum, which blends them where they meet so they merge like liquid. At the hit point the normal comes from sampling the distance a hair away in each direction. The glass reflects a simple studio, shows a dimmed refraction through itself and, near its edges where light strikes at a glancing angle, takes on thin-film colour from a cosine palette. The pointer adds its own sphere, which melts into the others.
| Prop | Type | Default | Description |
|---|---|---|---|
| colors | [string, string, string] | ["#141A3A", "#6F8FE8", "#FF9AD0"] | The deep space, the light the glass reflects, and a warm glint. |
| count | number | 5 | Number of blobs, 1 to 6. |
| iridescence | number | 0.8 | Soap-film colour on the glass, 0 to 1. |
| interactive | boolean | true | Let the pointer pull a drop of its own through them. |
| 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/glass-blobs. It saves the file to components/motionkit and installs its dependencies.
Glass Blobs 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.
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.
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.
Fluid by nature
The live preview is free to explore. Plus unlocks the source for Glass Blobs 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 { GlassBlobs } from "@/components/motionkit/glass-blobs";
<GlassBlobs
className="h-[32rem] rounded-3xl"
>
<h1>Your hero</h1>
</GlassBlobs>Motion
The exact curves this component runs, plotted with Motion's own maths.
Blobs drift and merge
Runs on its own
Fluid by nature