Skip to content
GaudiGaudi Design System home

Search documentation

Search every page, heading and paragraph.

PhraseCycle

A sequence of phrases rotates vertically in a stable space, without moving the surrounding line.

AnimationsText@gaudi/design-system/animations/PhraseCycleView in StorybookSource

Installation

pnpm add github:ahmadassaf/design-system

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

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

Usage

import { PhraseCycle } from '@gaudi/design-system/animations/PhraseCycle';
<PhraseCycle texts={["Create", "Explore"]} />

Examples

Playground

Storybook

Downward rotation

Storybook

API

5 props

Accessibility

All phrases are exposed once as stable text, without a live region. Reduced motion shows the first phrase. Pausing keeps the current phrase visible. Provide a pause control for continuous cycling.

Notes

  • Visual idea inspired by Rotating Text from React Bits (MIT + Commons Clause). Independently implemented for Gaudi; no React Bits code or assets are included.