Dev Design Library

Word Rotator

Keeps the letters two words share and glides them into place as the rest trade out.

Word Rotator preview
Library
UI Lab
Framework
React
Type
component
License
MIT
Install
npx shadcn@latest add https://lab.xevrion.dev/r/word-rotator.json
Files
  • src/lab/components/word-rotator.tsx
  • src/lib/use-reduced-motion.ts
  • src/lib/cn.ts
  • src/lab/preview-play.ts
Source
https://github.com/xevrion/ui-lab

Categories

More from UI Lab