Reputation: 1351
Is there a class for the transition duration with tailwind CSS? For example, is there a way to add transition duration on this example div?
<div class=”text-black hover:text-red”>test</div>
Upvotes: 4
Views: 7985
Reputation: 563
There are currently no transition utilities in standard tailwindcss (there is an open issue on github from 2017). However, transition utilities can be enabled through plugins. You should look at benface's plugin tailwindcss-transitions.
npm install tailwindcss-transitions
Upvotes: 3