+ 3
Need help as quick as possible
How to make an image rotate every time it is clicked using CSS or JQuery .
5 Answers
+ 4
thanks @Amir
+ 3
this is one of my codes make it rotate every time I click it.
https://code.sololearn.com/WFzA7FSR96Ic/?ref=app
+ 2
this is one of my codes make it rotate every time I click it.
+ 1
This should work:
$("img").click(function() {
$(this).rotate(45);
});
or
$('img').click(function(){
$(this).css({
"transform": "rotate(90deg)"
});
});