What is happening why is box not rotate | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is happening why is box not rotate

https://code.sololearn.com/WhcWrLgoEEJo/?ref=app

20th Jan 2021, 9:45 AM
Abbakar_ah!!!
Abbakar_ah!!! - avatar
2 Answers
+ 1
css() jquery method change inlined style of elements selection... but you cannot set css variable through them ^^ however, this should work: $(".div").css("transform", 'rotate(50deg)') you could handle css variable values through dynamic stylesheets, but that's seems oversized for your target ;)
20th Jan 2021, 10:02 AM
visph
visph - avatar
0
--rotation: 0; .do changes in rotation instead of 0
20th Jan 2021, 9:57 AM
A S Raghuvanshi
A S Raghuvanshi - avatar