Replies: 10 comments 10 replies
-
Notice that some animations have a duration of less than 1 second. As we used the CSS calc() function, setting the duration through the --animation-duration property will respect these ratios. So, when you change the global duration all the animations will respond to that change |
Beta Was this translation helpful? Give feedback.
-
I find it unexpected and distracting that there is |
Beta Was this translation helpful? Give feedback.
-
There is a plugin called tailwindcss-animation-delay. You can use it. |
Beta Was this translation helpful? Give feedback.
-
Now you can use
|
Beta Was this translation helpful? Give feedback.
-
My solution is to write a custom utility for In tailwind.config.js:
|
Beta Was this translation helpful? Give feedback.
-
i think that a solution can be just add the correct parameter in custom animations for example:
Where de last "3s" (three seconds) written in animation refer to animation-delay propery in CSS |
Beta Was this translation helpful? Give feedback.
-
I found another great alternative for adding a dynamic delay. In my case, I had multiple divs as a list and wanted to add a step-wise delay for each animated div element, given the
In my case, |
Beta Was this translation helpful? Give feedback.
-
This should be default! The plugin solution worked for me. |
Beta Was this translation helpful? Give feedback.
-
Another solution to this problem is to modify the
Make sure to |
Beta Was this translation helpful? Give feedback.
-
Hey everyone,
I just had the third time that I stumbled upon a case where it would have been very helpful to have utilities for animation like
similar to the transition-delay utility.
There are a lot possibilities for animations with the same animation applied to multiple objects only different by animation-delay, e.g. some from spinkit (https://github.com/tobiasahlin/SpinKit/blob/742a71277c49b69053b5beb9fad80d720840a2ab/spinkit.css#L126).
Currently I would just add the property in custom css or a style tag, but it would be the easiest to just add
class="animation-delay-500"
to one of the related divs. I could also create a custom utility with something likeAre there any plans to include more animation utilities and if not what is the suggested way for this? Using css, style tags, custom utilities or creating two animations in the tailwind.config.js with different delays?
Beta Was this translation helpful? Give feedback.
All reactions