Motion UI upgrades Split Text with React API
The web animation library updated its 2.5kb Split Text utility with a dedicated React hook, support for CSS wrap balance and text gradients, and preserved kerning across nested markup. The release also improves internationalization and emoji rendering while adding resize callbacks and built-in screen reader accessibility.
Splitting DOM text for animations has traditionally been a fragile headache that breaks screen readers, destroys text layout, and clashes with modern CSS styling. Motion UI addressing layout preservation and accessibility while keeping the footprint under 2.5kb sets a high bar for lightweight frontend animation tooling.
- –Layout preservation: Supporting nested HTML tags, font kerning, and CSS wrap balance prevents the layout shifts and broken typography that plague naive DOM splitting.
- –Declarative React integration: The new useSplitText API eliminates imperative boilerplate and cleanup leaks when orchestrating character or word animations in component trees.
- –Accessibility by default: Automatic aria-label generation keeps screen readers from stumbling over fractured text spans without manual developer intervention.
- –Responsive handling: Integrated resize callbacks ensure multi-line typography re-splits cleanly across dynamic viewport changes without triggering full manual re-renders.
DISCOVERED
19m ago
2026-11-25
PUBLISHED
1h ago
2026-11-25
RELEVANCE
AUTHOR
motiondotdev