# Glass Blobs

> 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.

Category: Backgrounds · MotionKit Plus · Updated 2026-11-10 · Live demo: https://www.motionkitui.com/components/glass-blobs

## When to use it

AI, fintech and product launches, creative tools, and premium heroes that want something fluid, dimensional and unmistakably modern.

## How it works

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.

## Installation

Part of MotionKit Plus (https://www.motionkitui.com/pricing). Subscribers install it with `npx shadcn@latest add @motionkit/glass-blobs` after adding their registry token from https://www.motionkitui.com/account.

## Props

| 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. |

## Accessibility

- **Keyboard: Not applicable.** Decorative, nothing to focus.
- **Screen readers: Pass.** The effect is hidden from assistive tech; only your content is read.
- **Reduced motion: Pass.** With reduced motion on, it's drawn once and holds still. It also stops rendering off screen.
- **Colour contrast: Pass.** White text measures 20:1 against the deep background between the drops; keep long copy off the bright glass.
