Overview
Tailwind Animations v1.0 represents a major architectural change with native support for Tailwind CSS v4. The plugin has been completely rewritten as a CSS-only implementation, eliminating the JavaScript-based plugin system used in v3.Key Changes
Package Rename
The package has been renamed from@midudev/tailwind-animations to tailwind-animations.
CSS-Only Implementation
The plugin is now pure CSS using Tailwind v4’s@theme and @utility directives. The JavaScript plugin system has been completely removed.
Configuration Method
Tailwind CSS v4 uses CSS imports instead of JavaScript configuration files.Migration Steps
Update Configuration
Before (Tailwind CSS v3):After (Tailwind CSS v4):
tailwind.config.js
globals.css
You can now delete your
tailwind.config.js file if it only contained the animations plugin.Remove JavaScript Plugin Logic
If you had any custom theme extensions for animations in your
tailwind.config.js, you’ll need to migrate them to CSS custom properties using Tailwind v4’s @theme directive.What Stays the Same
Class Names
All animation utility classes remain unchanged:animate-fade-in,animate-fade-outanimate-slide-in-top,animate-slide-in-bottomanimate-zoom-in,animate-zoom-out- All other animation classes
Animation Modifiers
All modifier classes continue to work:animate-delay-*- Animation delaysanimate-duration-*- Animation durationsanimate-iteration-count-*- Iteration countsanimate-fill-mode-*- Fill modesanimate-bezier-*- Timing functions
View Timelines
View timeline utilities remain functional:Benefits of v4
Faster Build Times
CSS-only implementation eliminates JavaScript processing overhead
Simpler Architecture
No plugin registration or JavaScript configuration needed
Better Tree-Shaking
Improved CSS optimization with Tailwind v4’s engine
Modern Standards
Built on Tailwind CSS v4’s native
@theme and @utility directivesTroubleshooting
Animations not working after migration
- Verify you’ve imported
tailwind-animationsin your CSS file - Ensure you’re using Tailwind CSS v4.0.0 or higher
- Check that your build process is processing the CSS imports correctly
Using both v3 and v4 in a monorepo
If you have a monorepo with projects on different Tailwind versions:- Projects on Tailwind v3: Use
@midudev/[email protected] - Projects on Tailwind v4: Use
tailwind-animations@latest
Need Help?
If you encounter issues during migration:- Check the GitHub Issues
- Review the Tailwind CSS v4 migration guide
- Join the community discussions