# Glass Form

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

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

## When to use it

Product and brand launches, AI and creative tools, architecture and design studios, and hero sections built around a single, striking object.

## How it works

The ring, sphere or cube is a signed distance function, raymarched pixel by pixel and turned slowly by rotation matrices, with the pointer adding a little turn of its own. Glass reads as glass because of what it reflects and bends, so the environment is a studio: a dark room, light from above, a coloured bounce light from one side and long softbox strips. The refraction is looked up three times with slightly different indices for red, green and blue, which splits light into colour at the edges, and a Fresnel term blends to reflection at glancing angles.

## Installation

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

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `shape` | `"torus" \| "sphere" \| "cube"` | `"torus"` | The form. |
| `colors` | `[string, string, string]` | `["#0B1022", "#7FA8FF", "#FF9AD5"]` | The studio, the light from above and a coloured bounce light. |
| `dispersion` | `number` | `0.6` | How far the glass splits light at its edges, 0 to 1. |
| `iridescence` | `number` | `0.5` | Thin-film sheen at glancing angles, 0 to 1. |
| `interactive` | `boolean` | `true` | Let the pointer turn the form towards it. |
| `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 on the studio around the glass; set it beside or below the form, as the demo does.
