_parallax-scrolling.scss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* Parallax background */
  2. [data-parallax-background-ratio] {
  3. position: relative !important;
  4. background-size: cover !important;
  5. overflow: hidden;
  6. background-attachment: fixed !important;
  7. transition-duration: 0s;
  8. -webkit-transition-duration: 0s;
  9. }
  10. /* Video icon effect */
  11. .video-icon-effect {
  12. position: relative;
  13. width: 65px;
  14. height: 65px;
  15. border-radius: 50%;
  16. background-color: var(--white);
  17. &:before {
  18. position: absolute;
  19. content: '';
  20. animation: border-transform 7s linear infinite alternate forwards;
  21. background-color: var(--white);
  22. width: 100px;
  23. height: 100px;
  24. top: -15px;
  25. left: -15px;
  26. opacity: 0.2;
  27. }
  28. }
  29. @-webkit-keyframes border-transform{
  30. 0%,100% { border-radius: 36% 64% 59% 41% / 40% 45% 55% 60% ; }
  31. 24% { border-radius: 37% 63% 60% 40% / 46% 52% 48% 54% ; }
  32. 32% { border-radius: 40% 60% 54% 46% / 52% 56% 44% 48% ; }
  33. 42% { border-radius: 52% 48% 62% 38% / 54% 54% 46% 46% ; }
  34. 56% { border-radius: 60% 40% 65% 35% / 54% 50% 50% 46% ; }
  35. 70% { border-radius: 44% 56% 43% 57% / 42% 50% 50% 58% ; }
  36. }
  37. @keyframes border-transform{
  38. 0%,100% { border-radius: 36% 64% 59% 41% / 40% 45% 55% 60% ; }
  39. 24% { border-radius: 37% 63% 60% 40% / 46% 52% 48% 54% ; }
  40. 32% { border-radius: 40% 60% 54% 46% / 52% 56% 44% 48% ; }
  41. 42% { border-radius: 52% 48% 62% 38% / 54% 54% 46% 46% ; }
  42. 56% { border-radius: 60% 40% 65% 35% / 54% 50% 50% 46% ; }
  43. 70% { border-radius: 44% 56% 43% 57% / 42% 50% 50% 58% ; }
  44. }