anya-ji's picture
Add files using upload-large-folder tool
98c641a verified
Raw History Blame Contribute Delete
8.82 kB
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Anton">
<style>body {
background: #000;
height: 100vh;
overflow: hidden;
display: flex;
font-family: 'Anton', sans-serif;
justify-content: center;
align-items: center; }
#waves {
width: 100%;
height: 100%; }
#waves .wave {
position: absolute;
width: 100%;
height: 100%;
transform-origin: 50% 50%;
clip-path: polygon(50% 50%, 47.5% 0%, 52.5% 0%);
overflow: hidden;
backface-visibility: hidden;
mix-blend-mode: screen; }
#waves .wave::before {
content: '';
position: absolute;
top: 50%;
left: calc(50% - 40px);
height: 100px;
width: 100px;
border-radius: 100%;
background: red;
backface-visibility: hidden; }
#waves .wave:nth-child(1) {
transform: rotateZ(0deg) translate(20px, 10px); }
#waves .wave:nth-child(1)::before {
animation: wavy 3600ms 0ms ease-in infinite; }
#waves .wave:nth-child(2) {
transform: rotateZ(10deg) translate(20px, 10px); }
#waves .wave:nth-child(2)::before {
animation: wavy 3600ms 100ms ease-in infinite; }
#waves .wave:nth-child(3) {
transform: rotateZ(20deg) translate(20px, 10px); }
#waves .wave:nth-child(3)::before {
animation: wavy 3600ms 200ms ease-in infinite; }
#waves .wave:nth-child(4) {
transform: rotateZ(30deg) translate(20px, 10px); }
#waves .wave:nth-child(4)::before {
animation: wavy 3600ms 300ms ease-in infinite; }
#waves .wave:nth-child(5) {
transform: rotateZ(40deg) translate(20px, 10px); }
#waves .wave:nth-child(5)::before {
animation: wavy 3600ms 400ms ease-in infinite; }
#waves .wave:nth-child(6) {
transform: rotateZ(50deg) translate(20px, 10px); }
#waves .wave:nth-child(6)::before {
animation: wavy 3600ms 500ms ease-in infinite; }
#waves .wave:nth-child(7) {
transform: rotateZ(60deg) translate(20px, 10px); }
#waves .wave:nth-child(7)::before {
animation: wavy 3600ms 600ms ease-in infinite; }
#waves .wave:nth-child(8) {
transform: rotateZ(70deg) translate(20px, 10px); }
#waves .wave:nth-child(8)::before {
animation: wavy 3600ms 700ms ease-in infinite; }
#waves .wave:nth-child(9) {
transform: rotateZ(80deg) translate(20px, 10px); }
#waves .wave:nth-child(9)::before {
animation: wavy 3600ms 800ms ease-in infinite; }
#waves .wave:nth-child(10) {
transform: rotateZ(90deg) translate(20px, 10px); }
#waves .wave:nth-child(10)::before {
animation: wavy 3600ms 900ms ease-in infinite; }
#waves .wave:nth-child(11) {
transform: rotateZ(100deg) translate(20px, 10px); }
#waves .wave:nth-child(11)::before {
animation: wavy 3600ms 1000ms ease-in infinite; }
#waves .wave:nth-child(12) {
transform: rotateZ(110deg) translate(20px, 10px); }
#waves .wave:nth-child(12)::before {
animation: wavy 3600ms 1100ms ease-in infinite; }
#waves .wave:nth-child(13) {
transform: rotateZ(120deg) translate(20px, 10px); }
#waves .wave:nth-child(13)::before {
animation: wavy 3600ms 1200ms ease-in infinite; }
#waves .wave:nth-child(14) {
transform: rotateZ(130deg) translate(20px, 10px); }
#waves .wave:nth-child(14)::before {
animation: wavy 3600ms 1300ms ease-in infinite; }
#waves .wave:nth-child(15) {
transform: rotateZ(140deg) translate(20px, 10px); }
#waves .wave:nth-child(15)::before {
animation: wavy 3600ms 1400ms ease-in infinite; }
#waves .wave:nth-child(16) {
transform: rotateZ(150deg) translate(20px, 10px); }
#waves .wave:nth-child(16)::before {
animation: wavy 3600ms 1500ms ease-in infinite; }
#waves .wave:nth-child(17) {
transform: rotateZ(160deg) translate(20px, 10px); }
#waves .wave:nth-child(17)::before {
animation: wavy 3600ms 1600ms ease-in infinite; }
#waves .wave:nth-child(18) {
transform: rotateZ(170deg) translate(20px, 10px); }
#waves .wave:nth-child(18)::before {
animation: wavy 3600ms 1700ms ease-in infinite; }
#waves .wave:nth-child(19) {
transform: rotateZ(180deg) translate(20px, 10px); }
#waves .wave:nth-child(19)::before {
animation: wavy 3600ms 1800ms ease-in infinite; }
#waves .wave:nth-child(20) {
transform: rotateZ(190deg) translate(20px, 10px); }
#waves .wave:nth-child(20)::before {
animation: wavy 3600ms 1900ms ease-in infinite; }
#waves .wave:nth-child(21) {
transform: rotateZ(200deg) translate(20px, 10px); }
#waves .wave:nth-child(21)::before {
animation: wavy 3600ms 2000ms ease-in infinite; }
#waves .wave:nth-child(22) {
transform: rotateZ(210deg) translate(20px, 10px); }
#waves .wave:nth-child(22)::before {
animation: wavy 3600ms 2100ms ease-in infinite; }
#waves .wave:nth-child(23) {
transform: rotateZ(220deg) translate(20px, 10px); }
#waves .wave:nth-child(23)::before {
animation: wavy 3600ms 2200ms ease-in infinite; }
#waves .wave:nth-child(24) {
transform: rotateZ(230deg) translate(20px, 10px); }
#waves .wave:nth-child(24)::before {
animation: wavy 3600ms 2300ms ease-in infinite; }
#waves .wave:nth-child(25) {
transform: rotateZ(240deg) translate(20px, 10px); }
#waves .wave:nth-child(25)::before {
animation: wavy 3600ms 2400ms ease-in infinite; }
#waves .wave:nth-child(26) {
transform: rotateZ(250deg) translate(20px, 10px); }
#waves .wave:nth-child(26)::before {
animation: wavy 3600ms 2500ms ease-in infinite; }
#waves .wave:nth-child(27) {
transform: rotateZ(260deg) translate(20px, 10px); }
#waves .wave:nth-child(27)::before {
animation: wavy 3600ms 2600ms ease-in infinite; }
#waves .wave:nth-child(28) {
transform: rotateZ(270deg) translate(20px, 10px); }
#waves .wave:nth-child(28)::before {
animation: wavy 3600ms 2700ms ease-in infinite; }
#waves .wave:nth-child(29) {
transform: rotateZ(280deg) translate(20px, 10px); }
#waves .wave:nth-child(29)::before {
animation: wavy 3600ms 2800ms ease-in infinite; }
#waves .wave:nth-child(30) {
transform: rotateZ(290deg) translate(20px, 10px); }
#waves .wave:nth-child(30)::before {
animation: wavy 3600ms 2900ms ease-in infinite; }
#waves .wave:nth-child(31) {
transform: rotateZ(300deg) translate(20px, 10px); }
#waves .wave:nth-child(31)::before {
animation: wavy 3600ms 3000ms ease-in infinite; }
#waves .wave:nth-child(32) {
transform: rotateZ(310deg) translate(20px, 10px); }
#waves .wave:nth-child(32)::before {
animation: wavy 3600ms 3100ms ease-in infinite; }
#waves .wave:nth-child(33) {
transform: rotateZ(320deg) translate(20px, 10px); }
#waves .wave:nth-child(33)::before {
animation: wavy 3600ms 3200ms ease-in infinite; }
#waves .wave:nth-child(34) {
transform: rotateZ(330deg) translate(20px, 10px); }
#waves .wave:nth-child(34)::before {
animation: wavy 3600ms 3300ms ease-in infinite; }
#waves .wave:nth-child(35) {
transform: rotateZ(340deg) translate(20px, 10px); }
#waves .wave:nth-child(35)::before {
animation: wavy 3600ms 3400ms ease-in infinite; }
#waves .wave:nth-child(36) {
transform: rotateZ(350deg) translate(20px, 10px); }
#waves .wave:nth-child(36)::before {
animation: wavy 3600ms 3500ms ease-in infinite; }
@keyframes wavy {
0% {
transform: translateY(0px); }
100% {
transform: translateY(-400px);
height: 50px;
left: calc(50% - 150px);
background: blue; } }
</style>
</head>
<body>
<div id="waves"><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div><div class="wave"></div></div>
<script></script>
</body>
</html>