Skip to content

Different output for transition-slower & duration-500 #1370

@deadcoder0904

Description

@deadcoder0904

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)👇

tailwind-err

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions