Pol
Pol

Reputation: 1351

Transition duration with tailwind css

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

Answers (2)

Wytamma Wirth
Wytamma Wirth

Reputation: 563

Edit: tailwindcss v1.2.0 added transitions in 2020


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

Jonas Reif
Jonas Reif

Reputation: 324

Update 2020: CSS Transition and CSS Transform is now available.

--> Tailwind CSS v1.2.0

Upvotes: 7

Related Questions