In Web Animation API, we can animate elements by Element.animate interface. The returned Animation object can be played, paused or reversed by .play(), .pause() and .reverse(). I get this error when i try to reverse() the animation: Cannot play reversed Animation with infinite target effect end. Answer The behavior of reverse(), like play(), is that if the animation is at
Tag: web-animations
anime.js animation not working, (the animation doesn’t get initiated)
I just started with anime.js and wrote this basic code, but it doesn’t work. I had installed anime through npm, and when it didn’t work also included the cdn (line no-6) Can anyone tell where I’m going wrong..? Answer Your element does not exist when you execute the document.querySelector statement Wrap your code in a load event listener And I