-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Description
I have the following code where the Indigo button (transition-slower) rotates only text while Pink button (duration-500) rotates the whole button.
<div class="min-h-screen flex justify-center items-center">
<button class="transition transition-slower ease-in-out transform hover:rotate-180 bg-indigo-600 text-white font-bold py-2 px-4 rounded-lg">Rotate Me!</button>
<button class="transition duration-500 ease-in-out transform hover:rotate-180 bg-pink-600 text-white font-bold py-2 px-4 rounded-lg">Rotate Me!</button>
</div>The notable difference in both button’s code is transition-slower & duration-500.
And the weird part is as discussed in this PR #1273 both have similar CSS properties, i.e, transition-duration: 500ms;
Here’s a demo GIF in action (~2.8 MB)👇
Metadata
Metadata
Assignees
Labels
No labels
