+ 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

19th Jul 2019, 4:04 AM
No activity
3 ответов
+ 6
Here is an example code I put together demonstrating how you could do that: https://code.sololearn.com/WbM8BPNBdvTj/?ref=app
19th Jul 2019, 4:15 AM
Faisal
Faisal - avatar
+ 6
I understood my mistake, thanks
19th Jul 2019, 4:17 AM
No activity
+ 3
I'm pretty sure you don't want to change the color :/. This is actually a transform: $("object").css("transform", "rotate(360deg)");
19th Jul 2019, 4:15 AM
Airree
Airree - avatar