DEV Community 👩‍💻👨‍💻

Cover image for Wavy Backgrounds with CSS & SVG
Ganesh Patil
Ganesh Patil

Posted on

Wavy Backgrounds with CSS & SVG

Modern websites consist multiple features which makes it more attractive and phenomenal. Developers add more customizations and animations to websites for better look and waves are one of them. Every modern website includes waves and its actually convert normal look to better UI.

Get started with waves

Creative waves are easy but the actual challenge is to use it, how to setup and where. We can develop waves using pure SVG codes but a lot of different tools which helps you to get attractive waves.

Waves using pure SVG code

<!DOCTYPE html>
  <html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Waves tutorial!</title>
    <link rel="stylesheet" href="styles.css">
    <div class="wave-container">
  <h1>Hello, amazing readers!</h1>
  <p>Waves are awesome!</p>
  <svg xmlns="" viewBox="0 0 1440 320">
    <path fill="#FFF" d="…"></path>

Enter fullscreen mode Exit fullscreen mode

We can customize waves using SVG path you can explore more about SVG's from here!

Waves using external tools

There are multiple tools area available to draw waves and one of them which I recommend is because its simple to use and its came with lot of customizations like color, size multiple waves and other features.

You can create various type of animations with HTML SVG's with your own creativity visit to official documentation and explore it.

External tools to create SVG' Waves


Learn more about SVG's by exploring below documentations

  1. Fireship article to create multi level waves
  2. GFG waves background
  3. Create animated waves

Connect with me on Socials

Thankyou for reading this article.🙏✌
You can support my work [here!] 👍(

Top comments (0)

🌚 Browsing with dark mode makes you a better developer.

It's a scientific fact.