Pass the cards as items, then place the stage and the caption parts. Give the root a height.
roller-coaster-records.tsx
RollerCoasterGallery
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| items | — | ||
| 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 | — | 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. |
| card | 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. |
| card | number | 0.62 | The size of the cars on the track. |
| gap | number | 0.06 | The space between the cars. |
| amplitude | number | 0.46 | How high the hills of the track rise. |
| finish | "clean""glass""melt""pixel""ripple""smear" | "smear" | The surface of the cards in motion: streaks of color (smear), glass, melt, pixel blocks, or ripples. |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
| 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. |
| HomeorEnd | Moves to the first or the last card. |











