Cool Rotate/Animate Images when mouseover using CSS3

Few lines of CSS3 code is used to create a cool rotate / animate a image when a user mouseover it. I have used transition css3 code to made that effect.

CSS3 Image Rotate
Image Rotate / Animate using CSS3 (360 deg, 180 deg)

CSS3 Code

img {
-webkit-transition: all 0.5s ease 0s;
-moz-transition: all 0.5s ease 0s;
-o-transition: all 0.5s ease 0s;
-ms-transition: all 0.5s ease 0s;
transition: all 0.5s ease 0s;
cursor:pointer;
}

img:hover {
-webkit-transform: rotate(360deg);
-moz-transform: rotate(360deg);
-ms-transform: rotate(360deg);
-o-transform: rotate(360deg);
transform: rotate(360deg);
}

We can customize the code inorder to rotate / animate image to 180 degree, 90 degree etc.

Please don’t forget to share and subscribe to latest updates of the blog. Also any comments and feedback are all welcome!

Thanks!

[button type=”download” url=”http://w3lessons.info/demo/css3-image-rotate” color=”orange” align=”after”]View Demo & Download[/button]

You May Also Like

Never Miss Any Web Tutorials, Guides, Tips and Free eBooks

Join Our Community Of 50,000+ Web Lovers and get a weekly newsletter in your inbox

 

I hate spam too. Unsubscribe at any time.

1 thought on “Cool Rotate/Animate Images when mouseover using CSS3”

Leave a Comment