Animation Library for Tailwind CSS (Website)
Tailwindcss-motion is a new, accessible animation library that brings complex, performant motion to the web with simple utility classes.
Deep dive
- Accessibility: Focuses on motion safety defaults, reducing risks of vestibular triggers.
- Performance: Pre-optimized property calculations and frame management.
- Integration: Works directly within existing Tailwind projects via simple utility syntax.
- Tooling: Offers a visual animator extension for non-coders or rapid prototyping.
Decoder
- Vestibular trigger: Animations that cause physical dizziness or nausea in users with vestibular disorders, usually mitigated by respecting reduced-motion user preferences.
Original article
motion without commotion
Beautiful, Performant, Accessible
Motion made simple, for Tailwind CSS
npm i -D tailwindcss-motion
A new simple syntax animation library. Batteries included. Infinitely configurable.
Open Source / MIT License
Simple interface, infinite configurability
An intuitive syntax — built for movement.
Accessible by design
Animation accessibility is no longer a nice-to-have. We’ve built in accessibility by default.
Performance tested & optimized
No need to worry about browser-compatibility, property calculations, frames-per-second.
Installation
npm i -d tailwindcss-motion
// tailwind.config.js
export default {
theme: {
extend: {},
},
plugins: [require('tailwindcss-motion')],
};
Usage
Presets
Fade Slide Focus Blur Expand Shrink Pop Shake Bounce Confetti Typewriter Flomoji Compress Pulse Wobble Seesaw Oscillate Stretch Float Spin Blink
Custom Animations
Animator is best experienced on a desktop device.
Build with the visual animator inline, on your site — export the code to Tailwind CSS, Framer Motion, GSAP & more.
Fresh dev news, AI-digested daily. Never miss a trend at devoured.fyi