Advertisement
blackpab

html test

Mar 3rd, 2017
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.20 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="pl">
  3. <head>
  4.     <meta charset="utf-8">
  5.     <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
  6.     <title>HELL NO</title>
  7.     <meta content="Opis w Google" name="description">
  8.     <meta content="słowa, kluczowe, wypisane, po, porzecinku" name="keywords">
  9.     <link href="theme.css" rel="stylesheet" type="text/css">
  10. </head>
  11. <body>
  12.     <div class="trol"></p>
  13.  
  14. </body>
  15. </html>
  16.  
  17. @keyframes mymove {
  18.     0%   {top: 0px;}
  19.     24%  {top: 0px;}
  20.     25%  {top: 200px;}     
  21.     49%  {top: 200px;}
  22.     50%  {top: 400px; }
  23.     100% {top: 400px;}
  24.    
  25.     0%   {left: -201px; }
  26.     25%  {left: 100%;}     
  27.     50%  {left: -201px;}
  28.     100% {left: 100%;}
  29.    
  30.     0%    {background-image: url("trollface.jpg");}
  31.     24%   {background-image: url("trollface.jpg");}
  32.     25%   {background-image: url("troll2.png");}
  33.     49%   {background-image: url("troll2.png");}
  34.     50%   {background-image: url("troll3.png");}
  35.     100%  {background-image: url("troll3.png");}
  36. }
  37.  
  38. /* The element to apply the animation to */
  39. div.troll {
  40.     background-color: red;
  41.     display: block;
  42.     position: absolute;
  43.     height: 200px;
  44.     width: 200px;
  45.    
  46.     animation-name: mymove;
  47.     animation-duration: 20s;
  48.     animation-iteration-count: infinite;
  49.    
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement