Advertisement
Guest User

Untitled

a guest
Dec 1st, 2015
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.71 KB | None | 0 0
  1. <html><title>css-bee</title>
  2. <style>
  3. .box {
  4. width: 420px;
  5. height: 500px;
  6. margin: 100px;
  7. border: 1px solid #b9e3db;
  8. }
  9. .box * {
  10. display: block;
  11. position: relative;
  12. }
  13. .bee {
  14. width: 377px;
  15. animation-name: fly;
  16. animation-duration: 2s;
  17. animation-iteration-count: infinite;
  18. animation-direction: alternate;
  19. animation-timing-function: ease-in-out;
  20. -webkit-animation-name: fly;
  21. -webkit-animation-duration: 2s;
  22. -webkit-animation-iteration-count: infinite;
  23. -webkit-animation-direction: alternate;
  24. -webkit-animation-timing-function: ease-in-out;
  25. -moz-animation-name: fly;
  26. -moz-animation-duration: 2s;
  27. -moz-animation-iteration-count: infinite;
  28. -moz-animation-direction: alternate;
  29. -moz-animation-timing-function: ease-in-out;
  30. -o-animation-name: fly;
  31. -o-animation-duration: 2s;
  32. -o-animation-iteration-count: infinite;
  33. -o-animation-direction: alternate;
  34. -o-animation-timing-function: ease-in-out;
  35. o}
  36. .bee .body {
  37. position: absolute;
  38. border-radius: 125.5px;
  39. margin: 65px 85px;
  40. width: 250px;
  41. height: 317px;
  42. top: 0;
  43. background: #3a210b
  44. linear-gradient( to bottom,
  45. #3a210b 125px, #ffde1b 125px,
  46. #ffde1b 157px, #3a210b 157px,
  47. #3a210b 188px, #ffde1b 188px,
  48. #ffde1b 220px, #3a210b 220px,
  49. #3a210b 251px, #ffde1b 251px);
  50. }
  51. .bee .body:after {
  52. content: "";
  53. position: absolute;
  54. left: 110px;
  55. width: 0;
  56. border-left: 15px solid transparent;
  57. border-right: 15px solid transparent;
  58. top: 99.8%;
  59. border-top: 30px solid #3a210b;
  60. }
  61. .bee .wings {
  62. margin: 188px 20px;
  63. border-radius: 64px;
  64. width: 377px;
  65. height: 128px;
  66. background: #b9e3db;
  67. float: left;
  68. animation-name: flap;
  69. animation-duration: 0.5s;
  70. animation-iteration-count: infinite;
  71. animation-direction: alternate;
  72. animation-timing-function: ease-in-out;
  73. -webkit-animation-name: flap;
  74. -webkit-animation-duration: 0.5s;
  75. -webkit-animation-iteration-count: infinite;
  76. -webkit-animation-direction: alternate;
  77. -webkit-animation-timing-function: ease-in-out;
  78. -moz-animation-name: flap;
  79. -moz-animation-duration: 0.5s;
  80. -moz-animation-iteration-count: infinite;
  81. -moz-animation-direction: alternate;
  82. -moz-animation-timing-function: ease-in-out;
  83. -o-animation-name: flap;
  84. -o-animation-duration: 0.5s;
  85. -o-animation-iteration-count: infinite;
  86. -o-animation-direction: alternate;
  87. -o-animation-timing-function: ease-in-out;
  88. }
  89. .bee .eyes * {
  90. position: relative;
  91. top: 40px;
  92. background: #3a210b;
  93. width: 25px;
  94. height: 25px;
  95. border-radius: 25px;
  96. border: 13px solid #fff;
  97. }
  98. .bee .eyes .eye_left {
  99. float: left;
  100. left: 55px;
  101. }
  102. .bee .eyes .eye_right {
  103. float: right;
  104. right: 55px;
  105. }
  106. @-moz-keyframes flap {
  107. from {transform: translateY(20px);}
  108. to {transform: translateY(-20px);}
  109. }
  110. @-webkit-keyframes flap {
  111. from {-webkit-transform: translateY(20px);}
  112. to {-webkit-transform: translateY(-20px);}
  113. }
  114. @-o-keyframes flap {
  115. from {-o-transform: translateY(20px);}
  116. to {-o-transform: translateY(-20px);}
  117. }
  118. @keyframes flap {
  119. from {transform: translateY(20px);}
  120. to {transform: translateY(-20px);}
  121. }
  122. @-moz-keyframes fly {
  123. from {-moz-transform: translateX(100px);}
  124. to {-moz-transform: translateX(-100px);}
  125. }
  126. @-webkit-keyframes fly {
  127. from {-webkit-transform: translateX(100px);}
  128. to {-webkit-transform: translateX(-100px);}
  129. }
  130. @-o-keyframes fly {
  131. from {-o-transform: translateX(100px);}
  132. to {-o-transform: translateX(-100px);}
  133. }
  134. @keyframes fly {
  135. from {transform: translateX(100px);}
  136. to {transform: translateX(-100px);}
  137. }
  138.  
  139. </style>
  140. <body>
  141. <div class="box">
  142. <div class="bee">
  143. <div class="wings"></div>
  144. <div class="body">
  145. <div class="eyes">
  146. <div class="eye_left"></div>
  147. <div class="eye_right"></div>
  148. </div>
  149. </div>
  150. </div>
  151. </div>
  152. </body>
  153. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement