wave css website code example

Example 1: wave design css

#wave {
  position: relative;
  height: 70px;
  width: 600px;
  background: #e0efe3;
}
#wave:before {
  content: "";
  display: block;
  position: absolute;
  border-radius: 100% 50%;
  width: 340px;
  height: 80px;
  background-color: white;
  right: -5px;
  top: 40px;
}
#wave:after {
  content: "";
  display: block;
  position: absolute;
  border-radius: 100% 50%;
  width: 300px;
  height: 70px;
  background-color: #e0efe3;
  left: 0;
  top: 27px;
}

<div id="wave"></div>

Example 2: how to add wave in website page

<div class="wave-container">  <h1>Hello, world!</h1>  <p>Check out my awesome waves!</p>  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">    <path fill="#FFF" d="…"></path>  </svg></div>

Tags:

Css Example