|
363 | 363 |
|
364 | 364 | @-webkit-keyframes circle-one { |
365 | 365 | 0% { |
366 | | - -webkit-clip-path: circle(25vh at -25vh 25%); |
367 | | - clip-path: circle(25vh at -25vh 25%); |
| 366 | + -webkit-clip-path: circle(12.5vh at -12.5vh 12.5vh); |
| 367 | + clip-path: circle(12.5vh at -12.5vh 12.5vh); |
368 | 368 | } |
369 | 369 | 100% { |
370 | | - -webkit-clip-path: circle(25vh at calc(100vw + 25vh) 25%); |
371 | | - clip-path: circle(25vh at calc(100vw + 25vh) 25%); |
| 370 | + -webkit-clip-path: circle(12.5vh at calc(100vw + 12.5vh) 12.5vh); |
| 371 | + clip-path: circle(12.5vh at calc(100vw + 12.5vh) 12.5vh); |
372 | 372 | } |
373 | 373 | } |
374 | 374 |
|
375 | 375 | @keyframes circle-one { |
376 | 376 | 0% { |
377 | | - -webkit-clip-path: circle(25vh at -25vh 25%); |
378 | | - clip-path: circle(25vh at -25vh 25%); |
| 377 | + -webkit-clip-path: circle(12.5vh at -12.5vh 12.5vh); |
| 378 | + clip-path: circle(12.5vh at -12.5vh 12.5vh); |
379 | 379 | } |
380 | 380 | 100% { |
381 | | - -webkit-clip-path: circle(25vh at calc(100vw + 25vh) 25%); |
382 | | - clip-path: circle(25vh at calc(100vw + 25vh) 25%); |
| 381 | + -webkit-clip-path: circle(12.5vh at calc(100vw + 12.5vh) 12.5vh); |
| 382 | + clip-path: circle(12.5vh at calc(100vw + 12.5vh) 12.5vh); |
383 | 383 | } |
384 | 384 | } |
385 | 385 |
|
386 | 386 | @-webkit-keyframes circle-two { |
387 | 387 | 0% { |
388 | | - -webkit-clip-path: circle(25vh at -25vh 75%); |
389 | | - clip-path: circle(25vh at -25vh 75%); |
| 388 | + -webkit-clip-path: circle(12.5vh at -12.5vh 37.5vh); |
| 389 | + clip-path: circle(12.5vh at -12.5vh 37.5vh); |
390 | 390 | } |
391 | 391 | 100% { |
392 | | - -webkit-clip-path: circle(25vh at calc(100vw + 25vh) 75%); |
393 | | - clip-path: circle(25vh at calc(100vw + 25vh) 75%); |
| 392 | + -webkit-clip-path: circle(12.5vh at calc(100vw + 12.5vh) 37.5vh); |
| 393 | + clip-path: circle(12.5vh at calc(100vw + 12.5vh) 37.5vh); |
394 | 394 | } |
395 | 395 | } |
396 | 396 |
|
397 | 397 | @keyframes circle-two { |
398 | 398 | 0% { |
399 | | - -webkit-clip-path: circle(25vh at -25vh 75%); |
400 | | - clip-path: circle(25vh at -25vh 75%); |
| 399 | + -webkit-clip-path: circle(12.5vh at -12.5vh 37.5vh); |
| 400 | + clip-path: circle(12.5vh at -12.5vh 37.5vh); |
401 | 401 | } |
402 | 402 | 100% { |
403 | | - -webkit-clip-path: circle(25vh at calc(100vw + 25vh) 75%); |
404 | | - clip-path: circle(25vh at calc(100vw + 25vh) 75%); |
| 403 | + -webkit-clip-path: circle(12.5vh at calc(100vw + 12.5vh) 37.5vh); |
| 404 | + clip-path: circle(12.5vh at calc(100vw + 12.5vh) 37.5vh); |
405 | 405 | } |
406 | 406 | } |
407 | 407 |
|
| 408 | +@-webkit-keyframes circle-three { |
| 409 | + 0% { |
| 410 | + -webkit-clip-path: circle(12.5vh at -12.5vh 62.5vh); |
| 411 | + clip-path: circle(12.5vh at -12.5vh 62.5vh); |
| 412 | + } |
| 413 | + 100% { |
| 414 | + -webkit-clip-path: circle(12.5vh at calc(100vw + 12.5vh) 62.5vh); |
| 415 | + clip-path: circle(12.5vh at calc(100vw + 12.5vh) 62.5vh); |
| 416 | + } |
| 417 | +} |
| 418 | + |
| 419 | +@keyframes circle-three { |
| 420 | + 0% { |
| 421 | + -webkit-clip-path: circle(12.5vh at -12.5vh 62.5vh); |
| 422 | + clip-path: circle(12.5vh at -12.5vh 62.5vh); |
| 423 | + } |
| 424 | + 100% { |
| 425 | + -webkit-clip-path: circle(12.5vh at calc(100vw + 12.5vh) 62.5vh); |
| 426 | + clip-path: circle(12.5vh at calc(100vw + 12.5vh) 62.5vh); |
| 427 | + } |
| 428 | +} |
| 429 | + |
| 430 | +@-webkit-keyframes circle-four { |
| 431 | + 0% { |
| 432 | + -webkit-clip-path: circle(12.5vh at -12.5vh 87.5vh); |
| 433 | + clip-path: circle(12.5vh at -12.5vh 87.5vh); |
| 434 | + } |
| 435 | + 100% { |
| 436 | + -webkit-clip-path: circle(12.5vh at calc(100vw + 12.5vh) 87.5vh); |
| 437 | + clip-path: circle(12.5vh at calc(100vw + 12.5vh) 87.5vh); |
| 438 | + } |
| 439 | +} |
| 440 | + |
| 441 | +@keyframes circle-four { |
| 442 | + 0% { |
| 443 | + -webkit-clip-path: circle(12.5vh at -12.5vh 87.5vh); |
| 444 | + clip-path: circle(12.5vh at -12.5vh 87.5vh); |
| 445 | + } |
| 446 | + 100% { |
| 447 | + -webkit-clip-path: circle(12.5vh at calc(100vw + 12.5vh) 87.5vh); |
| 448 | + clip-path: circle(12.5vh at calc(100vw + 12.5vh) 87.5vh); |
| 449 | + } |
| 450 | +} |
| 451 | + |
| 452 | +.shapes-container { |
| 453 | + content: ""; |
| 454 | + position: absolute; |
| 455 | + top: 0; |
| 456 | + left: 0; |
| 457 | + display: block; |
| 458 | + width: 100%; |
| 459 | + height: 100%; |
| 460 | + z-index: 2; |
| 461 | +} |
| 462 | + |
| 463 | +.circle-one, .circle-two, .circle-three, .circle-four { |
| 464 | + content: ""; |
| 465 | + position: absolute; |
| 466 | + top: 0; |
| 467 | + left: 0; |
| 468 | + display: block; |
| 469 | + width: 100%; |
| 470 | + height: 100%; |
| 471 | +} |
| 472 | + |
408 | 473 | @media (hover: hover) { |
409 | 474 | .footer:hover ~ .crumple { |
410 | 475 | z-index: 0; |
|
440 | 505 | animation: gradient 30s ease infinite; |
441 | 506 | } |
442 | 507 |
|
| 508 | + body:has(.footer__link--writings:hover) .crumple { |
| 509 | + background: #1E90FF; |
| 510 | + background: -webkit-linear-gradient(45deg, #1E90FF, #00BFFF); |
| 511 | + background: linear-gradient(45deg, #1E90FF, #00BFFF); |
| 512 | + background-size: 400% 400%; |
| 513 | + z-index: 0; |
| 514 | + } |
| 515 | + |
| 516 | + body:has(.footer__link--writings:hover) .crumple:after { |
| 517 | + background-color: transparent; |
| 518 | + } |
| 519 | + |
443 | 520 | body:has(.footer__link--writings:hover) .crumple .crumple__rect { |
444 | 521 | -webkit-animation: rectangle-reveal 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; |
445 | 522 | animation: rectangle-reveal 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; |
446 | 523 | background-color: #e619c4; |
447 | 524 | } |
448 | 525 |
|
449 | | - body:has(.footer__link--writings:hover) .crumple:after { |
| 526 | + body:has(.footer__link--writings:hover) .crumple .shapes-container .circle-one { |
450 | 527 | -webkit-animation: circle-one 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; |
451 | 528 | animation: circle-one 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; |
452 | | - background-color: #222; |
453 | | - z-index: 2; |
| 529 | + background-color: #1E90FF; |
454 | 530 | } |
455 | 531 |
|
456 | | - body:has(.footer__link--writings:hover) .crumple:before { |
| 532 | + body:has(.footer__link--writings:hover) .crumple .shapes-container .circle-two { |
457 | 533 | -webkit-animation: circle-two 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; |
458 | 534 | animation: circle-two 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; |
459 | 535 | background-color: #ff6347; |
460 | | - z-index: 2; |
| 536 | + } |
| 537 | + |
| 538 | + body:has(.footer__link--writings:hover) .crumple .shapes-container .circle-three { |
| 539 | + -webkit-animation: circle-three 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; |
| 540 | + animation: circle-three 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; |
| 541 | + background-color: #eaff47; |
| 542 | + } |
| 543 | + |
| 544 | + body:has(.footer__link--writings:hover) .crumple .shapes-container .circle-four { |
| 545 | + -webkit-animation: circle-four 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; |
| 546 | + animation: circle-four 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; |
| 547 | + background-color: #19e6a1; |
461 | 548 | } |
462 | 549 |
|
463 | 550 | body:has(.footer__link--github:hover) .crumple:after { |
|
509 | 596 | .crumple__rect { |
510 | 597 | content: ""; |
511 | 598 | position: absolute; |
512 | | - left: calc(-25vh); |
| 599 | + left: calc(-12.5vh); |
513 | 600 | display: block; |
514 | | - width: calc(100vw + 50vh); |
| 601 | + width: calc(100vw + 25vh); |
515 | 602 | height: 100%; |
516 | 603 | background-color: transparent; |
517 | 604 | z-index: 0; |
|
0 commit comments