Split Text Character Slider
A production-scale, light + dark Split Text Character Slider component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add split-text-character-sliderLive preview available in the gallery.
Usage
import { SplitTextCharacterSlider } from "@lerpa/ui";
<SplitTextCharacterSlider />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| text | string | - | |
| duration | number | — | |
| stagger | number | — | |
| delay | number | — | |
| once | boolean | — | |
| direction | 'up' | 'down' | — | |
| characterClassName | string | — | |
| as | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span' | 'div' | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.