---
title: "Helix Ribbon Gallery"
description: "A ribbon of pictures that winds upward around a tilted axis. Use it to show a long timeline or a big collection."
url: https://gelatinui.com/components/helix-ribbon-gallery
markdown_url: https://gelatinui.com/components/helix-ribbon-gallery.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/helix-ribbon-gallery"
version: "2026-11-24"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Helix Ribbon Gallery

> A ribbon of pictures that winds upward around a tilted axis. Use it to show a long timeline or a big collection.

Page: https://gelatinui.com/components/helix-ribbon-gallery

## When to use it

Best for: A long timeline: a ribbon of bent cards climbs around a tilted axis.

- Use `turnHeight` for the climb of one turn, and `twist` for how far a card twists as it turns away.
- Use `curve` for how much each card bends.

## When not to use it

- For a spiral that pulls cards to one point, use [Drain Gallery](https://gelatinui.com/components/drain-gallery.md).
- For a sphere to look around in, use [Dome Gallery](https://gelatinui.com/components/dome-gallery.md).

## Notes for agents

- Each item needs `id`, `src`, `alt`, `title`, `meta`, and `text`. The caption shows `title` and `meta` of the front card.
- The root is a flex column, and the stage fills the rest of it: give the root a height, or give the stage one.
- With no WebGL, or with `renderer="css"`, the cards draw flat in CSS 3D. A cross-origin picture needs CORS headers.
- The pictures load when the gallery comes near the view, and it stops off screen.
- `drift` moves the cards at rest. `drive` takes a Motion value in cards (scroll or time); then the hand no longer moves it, and a drag stays with the page.
- `budget` (default 60) is the number of cards; it rounds up to whole copies of `items`.

## Anatomy

```text
HelixRibbonGallery
```

## API reference

### HelixRibbonGallery

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `items` | `readonly Readonly` |  |  |
| `drive` | `MotionValue<number>` |  | Moves the look from a value, in cards: 1.5 is halfway from card 1 to card 2. Use it for scroll or time. The hand no longer moves the look, and a drag stays with the page. |
| `finishes` | `readonly Readonly` |  | The finishes `finish` may switch between. The shaders hold all of them, so a switch fades and never builds the program again. A look item that offers a choice passes its choices. |
| `budget` | `number` |  | The number of cards in the look. It rounds up to whole copies of the items. |
| `cardAspect` | `number` |  | Card width / card height. Default: the one the look was made for. |
| `drift` | `number` |  | Cards per second while nobody touches the gallery. |
| `renderer` | `"auto" \| "css"` |  | `css` forces flat cards, as a page with no WebGL gets. |
| `cardScale` | `number` | 0.56 | The size of the cards on the ribbon. |
| `gap` | `number` | 0.12 | The space between the cards. |
| `curve` | `number` | 1 | How tight the ribbon coils: 2 halves its radius. |
| `twist` | `number` | 0.42 | How far a card turns as it goes round the side. |
| `turnHeight` | `number` | 0.8 | How far the ribbon climbs in one full turn. |
| `finish` | `"clean" \| "glass" \| "melt" \| "pixel" \| "ripple" \| "smear"` | "clean" | The surface of the cards in motion: streaks of color (smear), glass, melt, pixel blocks, or ripples. |

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| HelixRibbonGallery | `helix-ribbon-gallery` |  |  |  |

## Usage

Pass the cards as `items`, then place the stage and the caption parts. Give the root a height.

```tsx title="helix-ribbon-places.tsx"
import { HelixRibbonGallery, HelixRibbonGalleryCaption, HelixRibbonGalleryMeta, HelixRibbonGalleryNext, HelixRibbonGalleryPrevious, HelixRibbonGalleryStage, HelixRibbonGalleryTitle } from "@/components/pro/effects/helix-ribbon-gallery";

const PLACES = [
  { id: "desert-road", title: "Desert Road", meta: "Utah, Route 163", text: "A straight line to the horizon and nothing to hurry for.",
    src: "/example-assets/desert-road-4x5.webp", alt: "A straight desert road to the horizon" },
  { id: "forest-cabin", title: "Forest Cabin", meta: "Oregon, autumn", text: "A wood stove, a stack of books, and rain on the roof.",
    src: "/example-assets/forest-cabin-4x5.webp", alt: "A small cabin under tall pines" },
  { id: "clear-night", title: "Clear Night", meta: "Patagonia", text: "No lights for a hundred kilometers, and the sky shows it.",
    src: "/example-assets/night-sky-mountain-4x5.webp", alt: "Stars over a dark mountain" },
  { id: "last-gold", title: "Last Gold", meta: "Vermont, October", text: "One old maple holds its color after the hill goes bare.",
    src: "/example-assets/autumn-tree-4x5.webp", alt: "One maple tree in autumn color" },
];

export function PlacesGallery() {
  return (
    <HelixRibbonGallery items={PLACES} className="h-[560px]">
      <HelixRibbonGalleryStage />
      <HelixRibbonGalleryCaption className="px-4 pb-4">
        <div className="min-w-0">
          <HelixRibbonGalleryTitle />
          <HelixRibbonGalleryMeta />
        </div>
        <div className="flex shrink-0 gap-2">
          <HelixRibbonGalleryPrevious />
          <HelixRibbonGalleryNext />
        </div>
      </HelixRibbonGalleryCaption>
    </HelixRibbonGallery>
  );
}
```

## 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/helix-ribbon-gallery
```

It adds 47 registry items: 43 files, 8529 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `@phosphor-icons/react`, `@unpic/core`, `@xstate/react`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`, `xstate`.

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

- [Drain Gallery](https://gelatinui.com/components/drain-gallery.md)
- [Dome Gallery](https://gelatinui.com/components/dome-gallery.md)
- [Roller Coaster Gallery](https://gelatinui.com/components/roller-coaster-gallery.md)

## Keyboard

| Keys | Action |
| --- | --- |
| Tab | Moves focus to the stage. The focus ring shows on the front card. |
| ← → | Moves to the card before or after. The arrows swap in a right-to-left page. |
| Home, End | Moves to the first or the last card. |

## Motion

| Part | Motion |
| --- | --- |
| Move | glide · Previous, Next, and the arrow keys move one card in about 0.46s; a far card takes up to 0.86s |
| Throw | glide · a drag release lands where the cards would be 320ms later, on the nearest card |
| Rest | progress · with `drift`, the cards move on their own, in cards a second; after a touch the drift waits 5s and eases back in |
