Guest User

Untitled

a guest
Oct 19th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. <style>
  2. .penguin {
  3.  
  4. /* change code below */
  5. --penguin-skin: gray;
  6. --penguin-belly: white;
  7. --penguin-beak: orange;
  8. /* change code above */
  9.  
  10. position: relative;
  11. margin: auto;
  12. display: block;
  13. margin-top: 5%;
  14. width: 300px;
  15. height: 300px;
  16. }
  17.  
  18. .penguin-top {
  19. top: 10%;
  20. left: 25%;
  21. background: var(--penguin-skin, gray);
  22. width: 50%;
  23. height: 45%;
  24. border-radius: 70% 70% 60% 60%;
  25. }
  26.  
  27. .penguin-bottom {
  28. top: 40%;
  29. left: 23.5%;
  30. background: var(--penguin-skin, gray);
  31. width: 53%;
  32. height: 45%;
  33. border-radius: 70% 70% 100% 100%;
  34. }
  35.  
  36. .right-hand {
  37. top: 0%;
  38. left: -5%;
  39. background: var(--penguin-skin, gray);
  40. width: 30%;
  41. height: 60%;
  42. border-radius: 30% 30% 120% 30%;
  43. transform: rotate(45deg);
  44. z-index: -1;
  45. }
  46.  
  47. .left-hand {
  48. top: 0%;
  49. left: 75%;
  50. background: var(--penguin-skin, gray);
  51. width: 30%;
  52. height: 60%;
  53. border-radius: 30% 30% 30% 120%;
  54. transform: rotate(-45deg);
  55. z-index: -1;
  56. }
  57.  
  58. .right-cheek {
  59. top: 15%;
  60. left: 35%;
  61. background: var(--penguin-belly, white);
  62. width: 60%;
  63. height: 70%;
  64. border-radius: 70% 70% 60% 60%;
  65. }
  66.  
  67. .left-cheek {
  68. top: 15%;
  69. left: 5%;
  70. background: var(--penguin-belly, white);
  71. width: 60%;
  72. height: 70%;
  73. border-radius: 70% 70% 60% 60%;
  74. }
  75.  
  76. .belly {
  77. top: 60%;
  78. left: 2.5%;
  79. background: var(--penguin-belly, white);
  80. width: 95%;
  81. height: 100%;
  82. border-radius: 120% 120% 100% 100%;
  83. }
  84.  
  85. .right-feet {
  86. top: 85%;
  87. left: 60%;
  88. background: var(--penguin-beak, orange);
  89. width: 15%;
  90. height: 30%;
  91. border-radius: 50% 50% 50% 50%;
  92. transform: rotate(-80deg);
  93. z-index: -2222;
  94. }
  95.  
  96. .left-feet {
  97. top: 85%;
  98. left: 25%;
  99. background: var(--penguin-beak, orange);
  100. width: 15%;
  101. height: 30%;
  102. border-radius: 50% 50% 50% 50%;
  103. transform: rotate(80deg);
  104. z-index: -2222;
  105. }
  106.  
  107. .right-eye {
  108. top: 45%;
  109. left: 60%;
  110. background: black;
  111. width: 15%;
  112. height: 17%;
  113. border-radius: 50%;
  114. }
  115.  
  116. .left-eye {
  117. top: 45%;
  118. left: 25%;
  119. background: black;
  120. width: 15%;
  121. height: 17%;
  122. border-radius: 50%;
  123. }
  124.  
  125. .sparkle {
  126. top: 25%;
  127. left: 15%;
  128. background: white;
  129. width: 35%;
  130. height: 35%;
  131. border-radius: 50%;
  132. }
  133.  
  134. .blush-right {
  135. top: 65%;
  136. left: 15%;
  137. background: pink;
  138. width: 15%;
  139. height: 10%;
  140. border-radius: 50%;
  141. }
  142.  
  143. .blush-left {
  144. top: 65%;
  145. left: 70%;
  146. background: pink;
  147. width: 15%;
  148. height: 10%;
  149. border-radius: 50%;
  150. }
  151.  
  152. .beak-top {
  153. top: 60%;
  154. left: 40%;
  155. background: var(--penguin-beak, orange);
  156. width: 20%;
  157. height: 10%;
  158. border-radius: 50%;
  159. }
  160.  
  161. .beak-bottom {
  162. top: 65%;
  163. left: 42%;
  164. background: var(--penguin-beak, orange);
  165. width: 16%;
  166. height: 10%;
  167. border-radius: 50%;
  168. }
  169.  
  170. body {
  171. background:#c6faf1;
  172. }
  173.  
  174. .penguin * {
  175. position: absolute;
  176. }
  177. </style>
  178. <div class="penguin">
  179. <div class="penguin-bottom">
  180. <div class="right-hand"></div>
  181. <div class="left-hand"></div>
  182. <div class="right-feet"></div>
  183. <div class="left-feet"></div>
  184. </div>
  185. <div class="penguin-top">
  186. <div class="right-cheek"></div>
  187. <div class="left-cheek"></div>
  188. <div class="belly"></div>
  189. <div class="right-eye">
  190. <div class="sparkle"></div>
  191. </div>
  192. <div class="left-eye">
  193. <div class="sparkle"></div>
  194. </div>
  195. <div class="blush-right"></div>
  196. <div class="blush-left"></div>
  197. <div class="beak-top"></div>
  198. <div class="beak-bottom"></div>
  199. </div>
  200. </div>
Add Comment
Please, Sign In to add comment