Gator_Bks

Efek Ombak

Aug 20th, 2024
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.64 KB | Source Code | 0 0
  1. <div class="wave">
  2.     <style type="text/css">
  3.         .editorial-border {
  4.             display: block;
  5.             width: 100%;
  6.             height: 100%;
  7.             max-height: 60px;
  8.             margin: 0;
  9.             z-index:5;
  10.             bottom:0;
  11.             position:absolute;
  12.             left:0px;
  13.             float:left;
  14.         }
  15.         #parallax-menu {
  16.             display: none;
  17.         }
  18.         .home #parallax-menu {
  19.             display: block;
  20.         }
  21.  
  22.         .parallax1 > use {
  23.             animation: move-forever1 10s linear infinite;
  24.             &:nth-child(1) {
  25.             animation-delay: -3s;
  26.             }
  27.         }
  28.         .parallax2 > use {
  29.             animation: move-forever2 8s linear infinite;
  30.             &:nth-child(1) {
  31.                 animation-delay: -3s;
  32.             }
  33.         }
  34.         .parallax3 > use {
  35.             animation: move-forever3 6s linear infinite;
  36.             &:nth-child(1) {
  37.                 animation-delay: -3s;
  38.             }
  39.         }
  40.         .parallax4 > use {
  41.             animation: move-forever4 4s linear infinite;
  42.             &:nth-child(1) {
  43.                 animation-delay: -3s;
  44.             }
  45.         }
  46.         @keyframes move-forever1 {
  47.             0% {
  48.                 transform: translate(85px, 0%);
  49.             }
  50.             100% {
  51.                 transform: translate(-90px, 0%);
  52.             }
  53.         }
  54.         @keyframes move-forever2 {
  55.             0% {
  56.                 transform: translate(-90px, 0%);
  57.             }
  58.             100% {
  59.                 transform: translate(85px, 0%);
  60.             }
  61.         }
  62.         @keyframes move-forever3 {
  63.             0% {
  64.                 transform: translate(85px, 0%);
  65.             }
  66.             100% {
  67.                 transform: translate(-90px, 0%);
  68.             }
  69.         }
  70.         @keyframes move-forever4 {
  71.             0% {
  72.                 transform: translate(-90px, 0%);
  73.             }
  74.             100% {
  75.                 transform: translate(85px, 0%);
  76.             }
  77.         }
  78.         @media (max-width: 980px) {
  79.             #main-menu, #parallax-menu, .home #parallax-menu{
  80.                 display:none
  81.         }
  82.     </style>
  83.        
  84.     <svg class='editorial-border' preserveAspectRatio='none' viewBox='0 24 150 28'>
  85.         <defs>
  86.             <path d='M-160 44c30 0    58-18 88-18s   58 18 88 18      58-18 88-18     58 18 88 18    v44h-352z' id='gentle-wave'></path>
  87.         </defs>
  88.         <g class='parallax1'>
  89.             <use fill='#3bc3f9' x='50' xlink:href='#gentle-wave' y='3'></use>
  90.         </g>
  91.         <g class='parallax2'>
  92.             <use fill='#1a8fe3' x='50' xlink:href='#gentle-wave' y='0'></use>
  93.         </g>
  94.         <g class='parallax3'>
  95.             <use fill='#0f73d8' x='50' xlink:href='#gentle-wave' y='9'></use>
  96.         </g>
  97.         <g class='parallax4'>
  98.             <use fill='#ffffff' x='50' xlink:href='#gentle-wave' y='6'></use>
  99.         </g>
  100.     </svg>
  101.     <script type="text/javascript">
  102.         $(document)["ready"](function() {
  103.             "use strict";
  104.             var a = $(window);
  105.             $(".full-height")["height"](a["height"]());
  106.             a["on"]("resize", function() {
  107.                 $(".full-height")["height"](a["height"]());
  108.             });
  109.             $('#parallax-menu ul').clone().appendTo('.scrolling-mobile-menu');
  110.             $('.scrolling-mobile-menu-toggle').on('click', function() {
  111.                 $('body').toggleClass('scrolling-active');
  112.                 $('.overlay').fadeToggle(170);
  113.             });
  114.          });
  115.     </script>
  116. </div>
Tags: html CSS js
Advertisement
Add Comment
Please, Sign In to add comment