sushma_proach

animation rotation bakgrnd in css

Jun 28th, 2016
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.16 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Untitled Document</title>
  6. <style>
  7. body{background:#E88570;}
  8. #planet {
  9.     height: 3500px;
  10.     margin-left: auto;
  11.     margin-right: auto;
  12.     margin-top: -1700px;
  13.     width: 3500px;
  14.     background: transparent url(http://www.pictoaplicaciones.com/img/estela.png) no-repeat center center;
  15. }
  16.  
  17. #planet {
  18.   -webkit-animation-name: rotate;
  19.   -webkit-animation-duration:10s;
  20.   -webkit-animation-iteration-count:infinite;
  21.   -webkit-animation-timing-function:linear;
  22.   -moz-animation-name: rotate;
  23.   -moz-animation-duration:10s;
  24.   -moz-animation-iteration-count:infinite;
  25.   -moz-animation-timing-function:linear;
  26. }
  27.  
  28. @-webkit-keyframes rotate {
  29.   from {-webkit-transform:rotate(0deg);}
  30.   to {  -webkit-transform:rotate(360deg);}
  31. }
  32.  
  33. @-moz-keyframes rotate {
  34.   from {-moz-transform:rotate(0deg);}
  35.   to {  -moz-transform:rotate(360deg);}
  36. }
  37. </style>
  38. </head>
  39.  
  40. <body>
  41. <div id="planet">
  42. </div>
  43. </body>
  44. </html>
Add Comment
Please, Sign In to add comment