2

If I start transition on element by adding a class, can I somehow figure out if it finished or do I need to measure time separately?

Or even better, can I get current intermediate values?

taw
  • 18,110
  • 15
  • 57
  • 76
  • There are events you can subscribe to, https://developer.mozilla.org/en-US/docs/Web/Events/animationend, https://developer.mozilla.org/en-US/docs/Web/Events/transitionend – misorude Dec 03 '18 at 11:11
  • Possible duplicate of [CSS3 transition events](https://stackoverflow.com/q/2794148/11683) – GSerg Dec 03 '18 at 11:26
  • Note that animation and transitions are different things, which need different handling in JS. (Just saying, because your title has "animation" while the post has "transition".) – Mr Lister Dec 03 '18 at 14:28

0 Answers0