TextTweener: a zero-dependency JavaScript library that animates text transitions by morphing individual letters between phrases.
Key features:
- 4.3KB gzipped, zero dependencies
- GPU-accelerated via CSS transforms and Web Animations API
- Nearest-neighbor letter matching for natural movement paths
- Full API: play, pause, next, prev, goTo, events
- Built-in accessibility with aria-live and reduced-motion support
- TypeScript included
Good fit for hero sections, tagline rotators, and any UI that cycles through short phrases.
👉 Blog Post
👉 GitHub Repo
👉 Live Demo
Top comments (0)