# Thin Film

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

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

## When to use it

Holographic and iridescent brands, beauty and fashion, music and nightlife, and launch pages that want colour without a busy picture.

## How it works

The colours on a soap bubble come from interference: light reflecting off the film's front and back surfaces, which strengthens some wavelengths and cancels others depending on how thick it is. The shader stands in for thickness with domain-warped noise that drifts slowly, and maps it through a cosine palette several times over, so colour bands repeat as the film thickens. Where the film is thinnest it turns black, as real film does just before it bursts. Fine streaks are added from a sharpened noise, and the pointer rotates the coordinates near it into a swirl.

## Installation

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

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `colors` | `[string]` | `["#05060A"]` | The black the film floats on. |
| `hue` | `number` | `0` | Shifts the whole spectrum, 0 to 1. |
| `intensity` | `number` | `0.8` | How vivid the colours are, 0 to 1. |
| `scale` | `number` | `1` | Swirl size; lower is larger and lazier. |
| `interactive` | `boolean` | `true` | Let the pointer stir the film. |
| `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: Partial.** The film runs from black to bright pastels, so no single text colour passes everywhere. Give text a soft shadow or backing, as the demo does.
