animate-pulse scales object instead of desired "pulsing" colors #9344
-
I've been trying to get
For some reason, instead of just changing the colors over the skeleton, each of the individual divs will scale up, maybe 1.2x to 1.3x their original size and back down. I've also tried directly copy-pasting examples with animate-pulse to have the same result. I saw a similar post in unocss here: unocss/unocss#241 It seems they're related but all of the changes merged there do not work on my local branch. Any idea what's going on? Versions:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Seems to work in isolation in Tailwind Play – could there be something else that is causing your issue? |
Beta Was this translation helpful? Give feedback.
-
Thank you to @wongjn for the answer. To sum up, by importing Solution is to not import a second instance of animate.css |
Beta Was this translation helpful? Give feedback.
-
thanks for this explanation @wongjn |
Beta Was this translation helpful? Give feedback.
Thank you to @wongjn for the answer.
To sum up, by importing
import "animate.css/animate.min.css";
in my project, animate.css overrode tailwind'spulse
keyframe, which caused this issue.Solution is to not import a second instance of animate.css