:root { --wavelength: 20vw; } body { background-color: var(--color-deep); } section h1 { font-size: 50px; } section h2 { color: white; background-color: black; } header.transparent { color: white; background-color: transparent; border-color: rgba(255, 255, 255, .1); } header.transparent .logo { fill: var(--color-deep); background-color: white; } header.transparent button.solid { color: var(--color-deep); background-color: white; } /* # Sections */ /* ## Intro */ section#intro { display: grid; color: white; min-height: 300px; } section#intro div { display: flex; flex-direction: column; justify-content: center; align-items: baseline; } /* ### Waves */ section.waves { --easing: .2; position: relative; height: 300px; margin-top: -100px; user-select: none; pointer-events: none; } section.waves img { margin: auto; height: 170%; transform-origin: 50% 100%; animation: ship 6s alternate infinite ease; } @keyframes ship { 0% { transform: translate(0, -7px) rotate(-7deg); } 100% { transform: translate(5px, 10px) rotate(4deg); } } section.waves .wave { position: absolute; width: 100%; height: 100%; transform: scale(1.5); bottom: 0; animation: wave 7s alternate infinite cubic-bezier(var(--easing), 0, calc(1 - var(--easing)), 1); } @keyframes wave { to { transform: scale(1.5) translateX(100px); } } section.waves + section { margin-top: 50px; } section.waves .wave:first-child { background-image: url("/assets/media/waves/0.svg"); } section.waves .wave:last-child { animation-duration: 5s; background-image: url("/assets/media/waves/1.svg"); } /* ## BYOE */ section#byoe { background-color: white; } section#byoe container { min-height: 600px; } section#byoe svg { height: 500px; } /* ## Example */ section#example { background-color: white; height: 700px; }