Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. <DOCTYPE !HTML>
  2. <html>
  3. <head>
  4. <style>
  5.  
  6. #kwadrat1
  7. {
  8. top: 100px;
  9. left: 800px;
  10. width: 50px;
  11. height: 50px;
  12. position: absolute;
  13. animation-duration: 3s;
  14. transform-origin: 125px 125px;
  15. animation-name: eeee;
  16. animation-iteration-count: infinite;
  17. animation-timing-function: linear;
  18. }
  19.  
  20. @keyframes eeee
  21. {
  22. 0% {transform: rotate(0deg); background-color: #0B491A; border-radius: 50px;}
  23. 25% {background-color: #146628; border-radius: 30px;}
  24. 50% {background-color: #26B248; border-radius: 10px;}
  25. 75% {background-color: #146628; border-radius: 30px;}
  26. 100% {transform: rotate(360deg); background-color: #0B491A; border-radius: 50px;}
  27. }
  28.  
  29. #kwadrat2
  30. {
  31. top: 100px;
  32. left: 800px;
  33. width: 50px;
  34. height: 50px;
  35. position: absolute;
  36. animation-duration: 3s;
  37. transform-origin: 125px 125px;
  38. animation-name: eee;
  39. animation-iteration-count: infinite;
  40. animation-timing-function: linear;
  41. }
  42.  
  43. @keyframes eee
  44. {
  45. 0% {transform: rotate(360deg); background-color: #26B248; border-radius: 50px;}
  46. 25% {background-color: #146628; border-radius: 30px;}
  47. 50% {background-color: #0B491A; border-radius: 10px;}
  48. 75% {background-color: #146628; border-radius: 30px;}
  49. 100% {transform: rotate(0deg); background-color: #26B248; border-radius: 50px;}
  50. }
  51.  
  52.  
  53.  
  54. </style>
  55. </head>
  56. <body>
  57. <div id="kwadrat1"></div>
  58. <div id="kwadrat2"></div>
  59. <div id="kwadrat3"></div>
  60. <div id="kwadrat4"></div>
  61. </div>
  62. </body>
  63. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement