Css wave simulation

Developer
Size
2,285 Kb
Views
10,120

How do I make an css wave simulation?

Just a little fun demo.. What is a css wave simulation? How do you make a css wave simulation? This script and codes were developed by João Victor on 06 November 2022, Sunday.

Css wave simulation Previews

Css wave simulation - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>css wave simulation</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="foo"></div>
</body>
</html>

Css wave simulation - Script Codes CSS Codes

body { background: #E2E2E2;
}
.foo { position: absolute; bottom: 0; left: 0; width: 50%; height: 200px; background: #457BBE; transform: translateZ(0); animation: foo 2.5s linear alternate infinite;
}
.foo:after,
.foo:before { content: ''; position: absolute;
}
.foo:after { right: -100%; width: 100%; height: 200px; background: #457BBE; animation: bar 2.5s linear alternate infinite;
}
.foo:before { top: -200px; left: 100%; width: 50px; height: 50px; border-style: solid; border-color: transparent black black transparent; border-width: 5px; background: transparent; transform: rotate(45deg) translateX(-70%); animation: arrow 2.5s linear alternate infinite;
}
@keyframes foo { 80% { border-radius: 0; } 98%, 100% { border-top-right-radius: 100%; }
}
@keyframes bar { 80% { border-radius: 0; } 98%, 100% { border-top-left-radius: 100%; }
}
@keyframes arrow { 0%, 50% { top: -200px; } 25%, 75% { top: -175px; } 98%, 100% { top: 50px; }
}
Css wave simulation - Script Codes
Css wave simulation - Script Codes
Home Page Home
Developer João Victor
Username jotavejv
Uploaded November 06, 2022
Rating 4.5
Size 2,285 Kb
Views 10,120
Do you need developer help for Css wave simulation?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

João Victor (jotavejv) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!