+ 3
How do I rotate an image with jQuery?
Y does this code not work? https://code.sololearn.com/WRezGMWgR9GY/?ref=app
1 Answer
+ 11
To rotate image 180° :
$(document).ready(function() {
$( ".toggle" ).click( function() { $("#image").css({'transform': 'rotate(-180deg)'});
});
});