Skip to content
Gaudi

Search documentation

Search every page, heading and paragraph.

On this page

ReelText

A formatted value whose digits spin into place on slot-machine reels, landing left to right.

AnimationsText@gaudi/design-system/animations/ReelText

Installation

pnpm add github:g-udi/design-system

Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.

import { ReelText } from '@gaudi/design-system/animations/ReelText';

Usage

import { ReelText } from '@gaudi/design-system/animations/ReelText';
<ReelText value="$31,904" />

Examples

Playground

Storybook

Changing value

Storybook

API

5 props

Accessibility

The root is one image named with the whole value; the reels are hidden, so the value is read once and never digit by digit. Reduced motion swaps values instantly.

Notes

  • Motion inspired by Slot text from Arc. Independently implemented for Gaudi; no Arc code or assets are included.