Adding rotation effect using the CSS3 transition property is posted below. Thanks david walsh for this code snippet
.image{ -webkit-transition-duration: 0.8 s; -moz-transition-duration: 0.8 s; -o-transition-duration: 0.8 s; transition-duration: 0.8 s; -webkit-transition-property: -webkit-transform; -moz-transition-property: -moz-transform; -o-transition-property: -o-transform; transition-property: transform; overflow : hidden ; } .image:hover { -webkit-transform:rotate( 360 deg); -moz-transform:rotate( 360 deg); -o-transform:rotate( 360 deg); } |
Then just attach the class “image” with any image or text to rotate it 360 degree.
No comments:
Post a Comment
Thank's for submitting your comment.