+ 8
Jquery and css
How can css interact with jquery, namely change transform: rotate (360deg) For example $ ("object"). css ("color", "red") Changes the color of an object, and how to replace ("color", "red") with transform: rotate (360deg) I tried many ways, but failed
3 odpowiedzi
+ 6
Here is an example code I put together demonstrating how you could do that:
https://code.sololearn.com/WbM8BPNBdvTj/?ref=app
+ 6
I understood my mistake, thanks
+ 3
I'm pretty sure you don't want to change the color :/. This is actually a transform:
$("object").css("transform", "rotate(360deg)");