animate.css icon indicating copy to clipboard operation
animate.css copied to clipboard

--animate-delay for each element?

Open jack-fdrv opened this issue 3 years ago • 6 comments

Describe The Bug

From the docs, we can set --animate-duration: 0.7s; per each element, but let me know if we able to do the same for --animate-delay: 10s; right now it only works for :root

Steps To Reproduce

Try to set for you single animated element this

--animate-duration: 0.7s;
--animate-delay: 10s;

Expected Behavior

Animation will start in 10 seconds.

Screenshots

image

Desktop

  • iOs
  • Chrome

Smartphone

No response

Additional Context

No response

jack-fdrv avatar May 28 '22 03:05 jack-fdrv

Hi @jack-fdrv , I can fix it.

DaywisonSilva avatar Jun 04 '22 14:06 DaywisonSilva

👋 Hey @jack-fdrv, in Animate.css documentation delayed animation doesn't work. I checked source code animate.css version 4.1.1 (the latest version) and noticed that (--animate-delay) variable no longer exists. Instead, try using (--animation-delay: 10s) and (-webkit-animation-delay: 10s) this way you'll get delayed animation working for most browsers. If this answer helped you, please mark it as answer and I'll be very grateful 😀

thelabuzov avatar Jun 17 '22 15:06 thelabuzov

Sorry @thelabuzov, but this info is not correct, we do have and use that variable and the documentation is correct.

I'll check if it's working as it should as might there be a CSS custom property quirk that we might have missed and is blocking the variable from being overridden.

eltonmesquita avatar Jul 29 '22 09:07 eltonmesquita

@eltonmesquita I can confirm that --animate-delay and --animate-repeat doesn't work for the elements, only --animate-duration works. Moreover classes like animate__delay-2, animate__repeat-2 doesn't work also. Seems like a serious bug in v4.1.1.

MihaelIsaev avatar Apr 02 '23 11:04 MihaelIsaev

Pease assign this issue to me

Kedarnath-Rothe avatar Oct 22 '23 12:10 Kedarnath-Rothe