<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>图片旋转</title>
<style>
*{margin: 1; padding: 0;}

.Rotation{
transition:width 1s, height 1s;
-moz-transition:width 1s, height 1s, -moz-transform 1s; /* Firefox 4 */
-webkit-transition:width 1s, height 1s, -webkit-transform 1s; /* Safari and Chrome */
-o-transition:width 1s, height 1s, -o-transform 1s; /* Opera */
}
.Rotation:hover{
transform:rotate(360deg);
-moz-transform:rotate(360deg); /* Firefox 4 */
-webkit-transform:rotate(360deg); /* Safari and Chrome */
-o-transform:rotate(360deg); /* Opera */
}

/*-webkit-animation-iteration-count: infinite;*/
.Rotation1{
transition:width 1s, height 1s;
-moz-transition:width 1s, height 1s, -moz-transform 1s; /* Firefox 4 */
-webkit-transition:width 1s, height 1s, -webkit-transform 1s; /* Safari and Chrome */
-o-transition:width 1s, height 1s, -o-transform 1s; /* Opera */

-webkit-animation: bounce 2.0s infinite ease-in-out;
   animation: bounce 2.0s infinite ease-in-out;
-webkit-animation-iteration-count: infinite;
}

.Rotation1:hover{
transform:rotate(360deg) ;
-moz-transform:rotate(360deg) ; /* Firefox 4 */
-webkit-transform:rotate(360deg) ; /* Safari and Chrome */
-o-transform:rotate(360deg ) ; /* Opera */
}

/*infinite*/

.ta_c{text-align: center;}

</style>
</head>
<body>

<div class="ta_c">
<img class="Rotation" src="img/01.png" width="500"/>
</div>

<div class="ta_c">
<img class="Rotation1" src="img/01.png" width="500"/>
</div>

</body>
</html>

相关文章:

  • 2021-11-05
  • 2021-08-13
  • 2021-11-03
  • 2021-12-06
  • 2022-01-07
  • 2021-10-01
  • 2022-01-07
  • 2021-04-29
猜你喜欢
  • 2021-08-01
  • 2021-08-01
  • 2021-11-08
  • 2021-04-12
  • 2021-09-17
  • 2021-10-10
  • 2021-12-15
  • 2021-09-13
相关资源
相似解决方案