---
title: "Aurora Strands Background"
description: "Aurora curtains drawn as hanging vertical threads."
url: https://gelatinui.com/components/aurora-strands-background
markdown_url: https://gelatinui.com/components/aurora-strands-background.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/aurora-strands-background"
version: "2026-11-24"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Aurora Strands Background

> Aurora curtains drawn as hanging vertical threads.

Page: https://gelatinui.com/components/aurora-strands-background

## When to use it

Best for: A calm night hero: aurora curtains drawn as fine threads that sway as the light moves.

- Use `lines` (20 to 200) for the number of threads, and `width` for how much of each step a thread fills.
- Use `angle` to turn the threads (90 hangs them down, 0 runs them across), and `bend` for how far they sway.
- Use `mask` (`top`, `bottom`, `edges`, or `radial`) to fade an edge into the page, and `maskSoftness` for the width of the fade.

## When not to use it

- For folds of light drawn in mono type, use [Glyph Curtain Background](https://gelatinui.com/components/glyph-curtain-background.md).
- For shafts of light from a corner, use [Light Rays Background](https://gelatinui.com/components/light-rays-background.md).

## Notes for agents

- It has no pointer or press by default: it moves on its own clock.
- `intensity` (0 to 2, default 1.3) sets how bright the curtains are.
- Children sit on top of the moving picture. The root is `relative isolate overflow-hidden`: give it a height, or let a flex parent size it.
- `palette` takes CSS colors: the ground, the second ground, then the look colors. The default palette has its own light and dark values.
- It stops off screen and in a hidden tab. `paused` holds the frame, and `speed={0}` shows a still frame.
- With no WebGL2 the box stays empty. Set `fallback` to show a CSS gradient of the palette there, on the server, and before the first frame.

## Anatomy

```text
AuroraStrandsBackground
```

## API reference

### AuroraStrandsBackground

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `palette` | `readonly string[]` | PALETTE | Any CSS colors (`var(--token)` too): the ground, the second ground, then the look colors. |
| `speed` | `number` |  | The time scale: 1 (default) is the designed speed, 0 a still frame. |
| `paused` | `boolean` |  | True holds the current frame. Default false. |
| `trigger` | `BackgroundTrigger` |  | When it moves: `loop` (default) or `hover`. It draws its first frame either way. |
| `seed` | `number` |  | Another seed gives another field of the same look. Default 0. |
| `press` | `boolean` |  | True: a press on the box sends a ripple through the field where it lands; a press on a button or a link inside does not. Default false. |
| `pointer` | `boolean` |  | True: the field leans toward a mouse or pen over the box. Default false. |
| `fps` | `number` |  | The most frames a second. Default: the display rate. |
| `resolution` | `number` |  | A last scale on the canvas pixels, after the caps (0.5 draws a quarter of them). Default 1. |
| `mask` | `"bottom" \| "edges" \| "none" \| "radial" \| "top"` |  | Fades an edge into the page: `radial`, `edges`, `top`, or `bottom`. Default `none`. |
| `vignette` | `number` |  | Darkens toward the corners, 0 to 1. Default 0. |
| `fallback` | `boolean` |  | True: a CSS gradient of the palette shows on the server, until the first WebGL frame, and with no WebGL. Default false: the box stays empty and the live picture fades in, because the gradient looks unlike the real effect and the swap reads as a glitch. |
| `intensity` | `number` | 1.3 | The curtain brightness, from 0 to 2. Default 1.3. |
| `lines` | `number` | 120 | How many threads hang across the box. A whole number from 20 to 200. Default 120. |
| `width` | `number` | 0.5 | How much of the strand step a strand fills at full tone. From 0.15 to 1. Default 0.5. |
| `angle` | `number` | 90 | The turn of the strands, in degrees (0 runs across, 90 hangs down). From 0 to 180. Default 90. |
| `bend` | `number` | 0.5 | How far the tone pushes a strand sideways. From 0 to 1. Default 0.5. |
| `toneLow` | `number` | 0 | The field light that reads as no tone. From 0 to 1. Default 0. |
| `toneHigh` | `number` | 0.6 | The field light that reads as full tone. From 0 to 1. Default 0.6. |
| `maskSoftness` | `number` | 0.25 | The share of the box the mask fade takes, from 0.05 to 0.6. Default 0.25. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| AuroraStrandsBackground | `aurora-strands-background` |  | `--aurora-strands-bg`, `--aurora-strands-bg-2`, `--aurora-strands-color-1`, `--aurora-strands-color-2`, `--aurora-strands-color-3` |  |

## Usage

Put the hero content inside as children: they sit on top of the moving picture. Give the root a height.

The sample also uses `button`, which this add does not write. One command adds them with this item:

```bash
npx shadcn@latest add @gelatin-ui-pro/aurora-strands-background @gelatin-ui/button
```

```tsx title="aurora-strands-hero.tsx"
import { AuroraStrandsBackground } from "@/components/pro/backgrounds/aurora-strands-background";
import { Button } from "@/components/ui/button";

export function AuroraStrandsHero() {
  return (
    <AuroraStrandsBackground
      lines={140}
      className="flex h-[560px] flex-col items-center justify-center gap-6 px-6 text-center"
    >
      <p className="text-sm text-muted-foreground">Sleep stories</p>
      <h1 className="max-w-2xl text-5xl font-light tracking-tight">
        Fall asleep under the northern lights
      </h1>
      <p className="max-w-md text-muted-foreground">
        New stories every night, read by calm voices.
      </p>
      <Button size="lg">Start listening</Button>
    </AuroraStrandsBackground>
  );
}
```

## Compose

Rules:

- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/aurora-strands-background
```

It adds 50 registry items: 50 files, 7690 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `clsx`, `motion`, `tailwind-merge`.

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Glyph Curtain Background](https://gelatinui.com/components/glyph-curtain-background.md)
- [Light Rays Background](https://gelatinui.com/components/light-rays-background.md)
- [Glow Wave](https://gelatinui.com/components/glow-wave.md)

## Motion

| Part | Motion |
| --- | --- |
| Show | chart · 600ms · ease-panel · the picture fades in after its first drawn frame |
| Loop | progress · the picture moves on its own clock at one speed; `speed` scales it, and 0 shows a still frame |
