Skip to content

Duration not working properly with arbitrary value #13357

Answered by alex-krasikau
maxhotzelt asked this question in Help
Discussion options

You must be logged in to vote

Hey @maxhotzelt!

I tested the arbitrary values implementation on Tailwind Play, and it works well: Tailwind Play - Arbitrary Values.

I noticed from the screenshots that you are using the tailwind-animate plugin. This plugin modifies tailwind transition utilities for animations. There is a bug affecting the use of arbitrary values, which has been reported in several open issues:

To address this problem, I suggest two solutions:

  1. Add any values used in the code to the tailwind config:
{
    ...
    theme: {
        extend: {
            transitionDuration: {
                "2000": "2000ms",
            },
        },
    }
    ...
}
  1. Alternatively, use a fork t…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maxhotzelt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants