<div class="content pink">
  <h1>Lorem ipsum</h1>
  <p>Quisque vitae feugiat nunc. Aenean rutrum iaculis lectus. Quisque lectus est, tristique vitae feugiat vitae, dapibus quis lacus.</p>
</div>
<div class="shapedividers_com-8266"></div>
<div class="content">
  <h2>Morbi et gravida leo</h2>
  <p>Interdum et malesuada fames ac ante ipsum primis in faucibus. Morbi id feugiat ex, ultricies volutpat diam.</p>
</div>
.shapedividers_com-8266 {
  overflow: hidden;
  position: relative;
  height: 100px;
}
.shapedividers_com-8266::before {
  content: "";
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background-repeat: no-repeat;
  bottom: -0.1vw;
  left: -0.1vw;
  right: -0.1vw;
  top: -0.1vw;
  transform: scaleX(4);
  transform-origin: 100% 0;
  animation: 10s infinite alternate shape-anim-8266 linear;
  background-size: 100% 100px;
  background-position: 50% 0%;
  background-image: url('data:image/svg+xml;charset=utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35.28 2.17" preserveAspectRatio="none"><path d="M0 .5c3.07.55 9.27-.42 16.14 0 6.88.4 13.75.57 19.14-.11V0H0z" fill="%23ffd4df"/><path d="M0 1c3.17.8 7.29-.38 10.04-.55 2.75-.17 9.25 1.47 12.67 1.3 3.43-.17 4.65-.84 7.05-.87 2.4-.02 5.52.88 5.52.88V0H0z" opacity=".5" fill="%23ffd4df"/><path d="M0 1.85c2.56-.83 7.68-.3 11.79-.42 4.1-.12 6.86-.61 9.58-.28 2.73.33 5.61 1.17 8.61 1 3-.19 4.73-.82 5.3-.84V.1H0z" opacity=".5" fill="%23ffd4df"/></svg>');
}

@media (min-width: 2100px) {
  .shapedividers_com-8266::before {
    background-size: 100% calc(2vw + 100px);
  }
}

@keyframes shape-anim-8266 {
  100% {
    transform: scaleX(4) translateX(calc(100% - (100% / 4)));
  }
}

body {
  background: #fffae8;
}
.content {
  padding: 2rem;
}
.pink {
  background: #ffd4df;
}
h1, h2 {
  font-family: 'Lobster Two', cursive;
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.