![]() You can use them inside the directives like and Also, you will not have extra keyframes emitted to the code in production, and in development, you can use the Tailwind Intellisense without any extra configuration! The animation classes are motion-safe by default, i.e., animations will be disabled if the user prefers reduced motion. After being properly configured, you can use the animation utilities of Animate.css as if they are a part of the Tailwind CSS!Īll your variants will work with the animation classes. To use the configuration, you just need to install it, import it, and wrap your existing configuration with it. So, I wrote a configuration myself – animated-tailwindcss. ![]() ![]() Although its adjustable (optional) settings are pretty nice, but setting the variants and required classes seems overkill in the new JIT mode. It is a great plugin in itself, except it requires quite a configuration. The question will probably make you search for some plugin, and the first one on the list will be tailwindcss-animatecss. But what if you can make Tailwind know about the animation classes provided by Animate.css? But since it is just a pure CSS library, it lacks Tailwind features like variants, directives, purging, and even editor tools like Tailwind Intellisense. The most common one is Animate.css if you don't want to write all the keyframes yourself.Īnimate.css (like Tailwind CSS) provides animation utility classes and works nicely alongside Tailwind. This limitation makes us search for other methods and additional frameworks to animate the components. ![]() It has only four animations by default - spin, ping, pulse, and bounce. If you have used Tailwind CSS, you might have noticed that it lacks proper animation utilities. ![]()
0 Comments
Leave a Reply. |