Can I play or stop a animation play state of other div by 1st div? | SoloLearn: Learn to code for FREE!

+1

Can I play or stop a animation play state of other div by 1st div?

Anyone know?

5/16/2020 10:20:45 AM

KILLER.CODER

1 Answer

New Answer

+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 : )