+ 3
Is it possible to trigger WebKit animation through JavaScript or jQuery
For ex: rotating an object using (rotateY to 360 deg) at infinite times when clicking the button ......how to activate this through JavaScript or jQuery
6 odpowiedzi
+ 3
M.MANIVANNAN remove the animation on another button click,
Or using the same button u can toggle class rotate
+ 3
That's awesome you coded what I need then how to stop it after clicking the button
+ 2
yes u can rotate img by js r
+ 2
+ 2
i dont know the code but i am sure tha it is ossible
+ 2
you can either create a class something like 'rotate', the keyframes for animation and then add the animation to that class.
then in js on click of button you can add that 'rotate' class
OR
just create the keyframes, and on click of button add animation to the element, using
element.style.animation property
https://code.sololearn.com/WSnBUmj4FbIF/?ref=app