DEV Community

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

Posted on

8 3

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">
  <head>
    <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">
  </head>
  <body>
    <div class="wave-container">
  <h1>Hello, amazing readers!</h1>
  <p>Waves are awesome!</p>
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
    <path fill="#FFF" d="…"></path>
  </svg>
</div>
  </body>
</html>

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 getwaves.io 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

Recommendations

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!] 👍(https://github.com/sponsors/ganeshpatil386386)

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more