HTML CSS examples for CSS:Animation
Animating elements' rotation starting at different rotation angles
<html> <head> <title>Css spin from different angle</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .container {<!-- w ww . j a v a2 s . c o m--> width:201px; height:201px; position:relative; background-color:Chartreuse; } .icon-wrap { position:absolute; top:96px; width:100px; height:11px; transform-origin:right 51%; animation:spin 11s linear infinite; background-color:yellow; } .icon { width:11px; height:11px; background-color:blue; } @keyframes spin { 0% { transform:rotate(46deg); } 100% { transform:rotate(406deg); } } </style> </head> <body> <div class="container"> <div class="icon-wrap"> <div class="icon"></div> </div> </div> </body> </html>