Jquery and css | SoloLearn: Learn to code for FREE!


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


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


I understood my mistake, thanks


I'm pretty sure you don't want to change the color :/. This is actually a transform: $("object").css("transform", "rotate(360deg)");