css code:
.rotate{
-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
;
}
.rotate:hover
{
-webkit-transform:rotate(
360
deg);
-moz-transform:rotate(
360
deg);
-o-transform:rotate(
360
deg);
}
Asp.net code:
<asp:Image ID="img" runat="server" CssClass="rotate" ImageUrl="~/images/123.jpg'/>
No comments:
Post a Comment