Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2
You can add a click event handler on 1st div that toggles the class for the 2nd div And put the Animation property in that class Well this way you can only play or stop the animation , but can't pause the Animation in between. Lete know if you want elaboration on this Happy coding : )
16th May 2020, 9:42 PM
good_bits
good_bits - avatar