Advertisement
j0h

cssWtf

j0h
Jan 23rd, 2015
692
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 1.46 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style>
  5. div {
  6.     background-image: url('http://nanocluster.umeche.maine.edu/mouse.png');
  7.     position: relative;
  8.     -webkit-animation: myfirst 5s; /* Chrome, Safari, Opera */
  9.     animation: myfirst 5s;
  10. }
  11.  
  12. /* Chrome, Safari, Opera */
  13. @-webkit-keyframes myfirst {
  14.     0%   {background-image:url('http://nanocluster.umeche.maine.edu/url('http://nanocluster.umeche.maine.edu/mouse.png'); left:0px; top:0px;}
  15.     25%  {background-image:url('http://nanocluster.umeche.maine.edu/mouse.png'); left:200px; top:0px;}
  16.     50%  {background-image:url('http://nanocluster.umeche.maine.edu/mouse.png'); left:200px; top:200px;}
  17.     75%  {background-image:url('http://nanocluster.umeche.maine.edu/mouse.png'); left:0px; top:200px;}
  18.     100% {background-image:url('http://nanocluster.umeche.maine.edu/mouse.png'); left:0px; top:0px;}
  19. }
  20.  
  21. /* Standard syntax */
  22. @keyframes myfirst {
  23.     0%   {background-image:url('http://nanocluster.umeche.maine.edu/mouse.png'); left:0px; top:0px;}
  24.     25%  {background-image:url('http://nanocluster.umeche.maine.edu/mouse.png'); left:200px; top:0px;}
  25.     50%  {background-image:url('http://nanocluster.umeche.maine.edu/mouse.png'); left:200px; top:200px;}
  26.     75%  {background-image:url('http://nanocluster.umeche.maine.edu/mouse.png'); left:0px; top:200px;}
  27.     100% {background-image:url('http://nanocluster.umeche.maine.edu/mouse.png'); left:0px; top:0px;}
  28. }
  29. </style>
  30. </head>
  31. <body>
  32. <div></div>
  33.  
  34. </body>
  35. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement