I want to know how to rotate an image arround its center.
I want when i click on the image,the picture will start rotating as long as an ajax call not successful.
Please help me to find out.
I want to know how to rotate an image arround its center.
I want when i click on the image,the picture will start rotating as long as an ajax call not successful.
Please help me to find out.
Try any of this code on your css,(this will work only on mouse hover.)
-webkit-transform: scale(1.1) rotate(5deg*);
-moz-transform: scale(1.1) rotate(5deg);
transform: scale(1.1) rotate(5deg);
Example, CSS
.alt-col:hover {
-webkit-transform: scale(1.1) rotate(5deg);
-moz-transform: scale(1.1) rotate(5deg);
transform: scale(1.1) rotate(5deg);
}
HTML
<img src="" alt="" class="alt-col">
You can switch images with css classes corresponding to the success of the ajax request :