+ 3

How do I rotate an image with jQuery?

Y does this code not work? https://code.sololearn.com/WRezGMWgR9GY/?ref=app

21st May 2018, 3:12 PM
Paul Grasser
Paul Grasser - avatar
1 Answer
+ 11
To rotate image 180° : $(document).ready(function() { $( ".toggle" ).click( function() { $("#image").css({'transform': 'rotate(-180deg)'}); }); });
21st May 2018, 3:16 PM
Prabhat
Prabhat - avatar