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