We would like to know how to animation-name: rotate.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
@-webkit-keyframes rotate {<!-- w w w .j a v a2 s. co m-->
from { -webkit-transform:rotate(0deg);}
to {-webkit-transform: rotate(360deg);}
}
.rotate {
-webkit-animation-name: rotate;
-webkit-animation-duration: 0.25s;
-webkit-animation-iteration-count: infinite;
-webkit-transition-timing-function: linear;
}
</style>
</head>
<body>
<img src="http://www.java2s.com/style/download.png" class="rotate" />
</body>
</html>
The code above is rendered as follows: