Rota entre varias frases con transiciones de muelle.
npx shadcn@latest add https://reactbits.dev/r/RotatingText-TS-TW
Úsalas en titulares y mensajes clave. Una por pantalla: si todo se mueve, nada destaca.
| Prop | Tipo | Por defecto |
|---|---|---|
| texts | string[] | [] |
| rotationInterval | number | 2000 |
| initial | object | { y: "100%", opacity: 0 } |
| animate | object | { y: 0, opacity: 1 } |
| exit | object | { y: "-120%", opacity: 0 } |
| animatePresenceMode | string | "wait" |
| animatePresenceInitial | boolean | false |
| staggerDuration | number | 0 |
| staggerFrom | string | "first" |
| transition | object | |
| loop | boolean | true |
| auto | boolean | true |
| splitBy | string | "characters" |
| onNext | function | undefined |
| mainClassName | string | '' |
| splitLevelClassName | string | '' |
| elementLevelClassName | string | '' |