Duration not working properly with arbitrary value #13357
-
According to the Tailwind CSS documentation, the syntax for specifying arbitrary duration values in milliseconds should be For instance, when using Furthermore, I wanted to inquire whether the official documentation regarding the usage of custom duration values with milliseconds syntax is incorrect, or if this behavior is indeed a bug within Tailwind CSS. Alternatively, I'm open to help. I may be overlooking something or misusing the feature in some way. Clarification on this matter would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 To address this problem, I suggest two solutions:
{
...
theme: {
extend: {
transitionDuration: {
"2000": "2000ms",
},
},
}
...
}
|
Beta Was this translation helpful? Give feedback.
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: