Если у вас есть похожее всплывающее окно, то вместо пингвина в том примере можно использовать этого кота, что скорее всего обратит на себя большее внимание.
Пример:
HTML:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
<div class="cat_container"> <div class="cat"> <div class="paw"></div> <div class="paw"></div> <div class="shake"> <div class="tail"></div> <div class="main"> <div class="head"></div> <div class="body"> <div class="leg"></div> </div> <div class="face"> <div class="mustache_cont"> <div class="mustache"></div> <div class="mustache"></div> </div> <div class="mustache_cont"> <div class="mustache"></div> <div class="mustache"></div> </div> <div class="nose"></div> <div class="eye"></div> <div class="eye"></div> <div class="brow_cont"> <div class="brow"></div> <div class="brow"></div> </div> <div class="brow_cont"> <div class="brow"></div> <div class="brow"></div> </div> <div class="ear_l"> <div class="inner"></div> </div> <div class="ear_r"> <div class="outer"></div> <div class="inner"></div> </div> </div> </div> </div> </div> </div> |
CSS:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 |
.cat_container { margin: 0; overflow: hidden; background: #FFF; position: relative; height: 300px; } .cat_container .cat { position: absolute; top: 50%; left: 50%; width: 188px; height: 260px; margin-left: -99px; margin-top: -130px; color: #000; } .cat_container .cat .paw { position: absolute; top: 176px; left: 88px; width: 20px; height: 80px; background: currentcolor; border-radius: 20px/0 0 80px 40px; transform: rotate(10deg); animation: paw_l 0.45s infinite linear; } .cat_container .cat .paw:after { position: absolute; content: ""; bottom: -5px; left: -4px; width: 20px; height: 26px; background: currentcolor; border-radius: 50%; transform: rotate(24deg); } .cat_container .cat .paw:nth-child(2) { left: 130px; animation: paw_r 0.45s infinite linear; } .cat_container .cat .shake { position: absolute; width: 100%; top: 0; animation: shake 0.45s infinite linear; } .cat_container .cat:before { position: absolute; content: ""; top: 100%; left: 50%; width: 130px; height: 30px; margin-left: -50px; margin-top: -20px; background: #616161; opacity: 0.4; border-radius: 50%; animation: shadow 0.45s infinite linear; animation-delay: 0.225s; } .cat_container .cat:after { position: absolute; content: ""; top: 100%; left: 100%; width: 15px; height: 10px; margin-left: -30px; margin-top: -10px; background: #616161; opacity: 0.3; border-radius: 50%; box-shadow: 50px 0 #616161, 100px 0 #616161, 150px 0 #616161, 200px 0 #616161, 250px 0 #616161, 300px 0 #616161; animation: track 0.225s infinite linear; } .cat_container .cat .tail { position: absolute; content: ""; top: 0; right: -4px; width: 160px; height: 150px; border: 20px solid; border-color: currentcolor transparent transparent currentcolor; transform: rotate(45deg); border-radius: 120px/106px 120px 0 120px; box-sizing: border-box; animation: tail 0.45s infinite linear; } .cat_container .cat .tail:after { position: absolute; content: ""; width: 20px; height: 20px; background: currentcolor; border-radius: 50%; bottom: 0; box-shadow: 2px 4px currentcolor, 2px 7px currentcolor, 2px 10px currentcolor, 1px 14px currentcolor, -1px 18px currentcolor, -5px 22px currentcolor, -10px 25px currentcolor, -15px 28px currentcolor, -20px 30px currentcolor; } .cat_container .cat .main { position: absolute; top: 14px; right: 0; width: 144px; height: 216px; color: currentcolor; } .cat_container .cat .main .head { position: absolute; bottom: -10px; left: 20px; width: 104px; height: 180px; background: currentcolor; border-radius: 55px/100px 100px 65px 65px; transform: rotate(40deg); } .cat_container .cat .main .body { position: absolute; right: 0; width: 130px; height: 180px; background: currentcolor; border-radius: 65px/70px 70px 100px 100px; } .cat_container .cat .main .body .leg { position: absolute; right: -10px; top: 20px; width: 50px; height: 116px; background: currentcolor; border-radius: 25px/0 60px 50px 0; } .cat_container .cat .main .body .leg:before { position: absolute; content: ""; bottom: -4px; right: 0; width: 20px; height: 40px; border: 3px solid transparent; border-radius: 50%; border-left-color: #616161; -webkit-transform: rotate(6deg); -ms-transform: rotate(6deg); transform: rotate(6deg); } .cat_container .cat .main .body .leg:after { position: absolute; content: ""; left: 3px; bottom: 35px; width: 76px; height: 70px; border-radius: 50%; border: 3px solid transparent; border-bottom-color: #616161; transform: rotate(65deg); } .cat_container .cat .main .face { position: absolute; bottom: 0; width: 76px; height: 80px; } .cat_container .cat .main .face .nose { position: absolute; bottom: 8px; left: 50%; width: 18px; height: 9px; margin-left: -10px; background: #9c1b4d; border-radius: 20px/10px 10px 20px 20px; } .cat_container .cat .main .face .mustache_cont { position: absolute; bottom: 5px; width: 20px; height: 10px; animation: mustache_l 0.45s infinite linear; } .cat_container .cat .main .face .mustache_cont:nth-child(2) { right: 0; animation: mustache_r 0.45s infinite linear; } .cat_container .cat .main .face .mustache { position: absolute; top: 0; width: 100%; border: 1px solid #616161; transform-origin: 100% 0; transform: rotate(-10deg); } .cat_container .cat .main .face .mustache:last-child { top: 6px; transform: rotate(-20deg); } .cat_container .cat .main .face .eye { position: absolute; top: 28px; left: -8px; width: 30px; height: 30px; background: #fff; border: 3px solid #000; border-radius: 50%; box-sizing: border-box; } .cat_container .cat .main .face .eye:nth-child(5) { top: 26px; left: 36px; } .cat_container .cat .main .face .eye:after { position: absolute; content: ""; width: 10px; height: 10px; right: 1px; top: 4px; background: #000; border-radius: 50%; animation: eye 0.45s infinite linear; } .cat_container .cat .main .face .brow_cont, .cat_container .cat .main .face .brow_cont { position: absolute; top: 14px; left: 10px; width: 10px; height: 10px; } .cat_container .cat .main .face .brow_cont:nth-child(7), .cat_container .cat .main .face .brow_cont:nth-child(7) { transform: rotateY(180deg) rotateZ(0); left: 38px; } .cat_container .cat .main .face .brow { position: absolute; top: 20%; height: 60%; border: 1px solid #616161; transform-origin: 100% 0; transform: rotate(10deg); } .cat_container .cat .main .face .brow:last-child { top: 0; height: 100%; left: 6px; transform: rotate(3deg); } .cat_container .cat .main .face .ear_l { position: absolute; top: -17px; width: 20px; height: 30px; background: currentcolor; border-radius: 20px/55px 55px 0 0; transform-origin: 50% 100%; overflow: hidden; transform: rotate(-20deg); animation: ear_l 0.45s infinite linear; } .cat_container .cat .main .face .ear_l .inner { position: absolute; top: 5px; left: 50%; width: 6px; height: 14px; margin-left: -4px; background: #616161; border-radius: 7px/20px 20px 0 0; } .cat_container .cat .main .face .ear_r { position: absolute; right: 0; margin-top: -22px; width: 36px; height: 30px; transform-origin: 50% 100%; overflow: hidden; transform: rotate(20deg); animation: ear_r 0.45s infinite linear; } .cat_container .cat .main .face .ear_r .outer { position: absolute; width: 30px; height: 200%; border: 3px solid #616161; border-radius: 20px/55px 55px 0 0; } .cat_container .cat .main .face .ear_r .inner { position: absolute; top: 50%; left: 50%; width: 12px; height: 26px; margin-left: -6px; background: #616161; border-radius: 50%; } @keyframes shake { 50% { top: 6px; } } @keyframes shadow { 50% { width: 110px; margin-left: -40px; } } @keyframes tail { 50% { transform: rotate(38deg); } } @keyframes track { to { margin-left: 20px; } } @keyframes eye { 50% { top: 2px; } } @keyframes mustache_l { 50% { transform: rotate(-10deg); } } @keyframes mustache_r { 0%, 100% { transform: rotateY(180deg) rotateZ(0); } 50% { transform: rotateY(180deg) rotateZ(-10deg); } } @keyframes ear_l { 50% { transform: rotate(-30deg); } } @keyframes ear_r { 50% { transform: rotate(30deg); } } @keyframes paw_l { 50% { left: 130px; top: 176px; } 70% { top: 160px; } } @keyframes paw_r { 25% { top: 160px; } 50% { left: 88px; top: 176px; } } |
Найдено на codepen.io у пользователя massimo
Добавить комментарий: