# Glass Ribbons

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

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

## When to use it

AI and product launches, creative tools, music and audio brands, and premium tech heroes that want something modern and dimensional.

## How it works

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.

## Installation

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

## Props

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

## 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, the ribbons are drawn once and hold still. It also stops rendering off screen.
- **Colour contrast: Pass.** White text measures 20:1 on the default background; the ribbons are translucent, but keep text clear of their bright edges.
