+7

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

7/19/2019 4:04:58 AM

꥟ǿ͜͡ȾȺꞦȺꞤ͜͡ǿ꥟

3 Answers

New Answer

+5

Here is an example code I put together demonstrating how you could do that: https://code.sololearn.com/WbM8BPNBdvTj/?ref=app

+5

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)");