A wave divider softens the hard edge between two page sections and adds a little movement to an otherwise rectangular layout. This generator produces a smooth, full-width wave as inline SVG, with sliders for every shape parameter and a live preview.
How it works
The top edge of the divider follows a sine curve sampled across the width, where the vertical position at each point is:
y(x) = baseline − amplitude × sin(2π × frequency × x / width + phase)
Sampled points are joined with cubic Beziers so the curve stays smooth, and the path is then closed down to the bottom edge so it fills as a solid shape:
<svg viewBox="0 0 1440 160" preserveAspectRatio="none" width="100%" height="160">
<path d="M0 80 C ... L 1440 160 L 0 160 Z" fill="#6366f1"/>
</svg>
preserveAspectRatio="none" lets the wave stretch to any container width.
Tips and notes
Set the fill colour to match the background of the section the wave sits against, so
the curve reads as a transition rather than a coloured band. Use the flip toggle when
the wave should crest upward into the section above. Keep amplitude below roughly a
third of the height to avoid clipping the crests, and reach for frequency 1–2 for
a calm, modern look; higher frequencies feel busier. Because the output is inline SVG,
you can later animate the fill or add a second offset wave for a layered effect.