---
name: css-svg-wave-generator
description: "Creates responsive SVG section dividers in four wave styles, with your color and height, ready to paste between page sections with no gap or scroll bar. Use when a web designer wants an SVG wave or shaped divider between two page sections in a given color and height. Do not use for animated backgrounds, hero illustrations, or a full page layout. Related topics: design, frontend, css."
---

# CSS SVG Wave Generator

Creates responsive SVG section dividers in four wave styles, with your color and height, ready to paste between page sections with no gap or scroll bar.

## When to use

Use this skill when a web designer wants an SVG wave or shaped divider between two page sections in a given color and height. Do not use it for animated backgrounds, hero illustrations, or a full page layout.

## Workflow

1. Ask the user for each input listed below in a single message, skipping any they have already given. Where options are listed, offer them, but accept other answers too.
2. Build a path for the chosen wave type inside a fixed viewBox so the shape is correct at any width.
3. Set preserveAspectRatio to none, the height from the input, and the fill color.
4. Handle the position and flip with a transform or placement rule, and add display block and a small overlap to avoid hairline gaps.
5. Output the SVG and its CSS wrapper with a comment on which values change the wave.

## Inputs

- **Wave type** (choose one: Smooth Wave, Spiky Peak, Curved Arch, Steps)
- **Fill color** (free text, e.g. "#0b5fff")
- **Height in px** (number from 20 to 500)
- **Position** (choose one: Bottom of the section above, Top of the section below)
- **Flip direction** (choose one: Yes, No)

## Output

An inline SVG of under 40 lines and a short CSS wrapper, with comments on the values to adjust.

## Prompt template

Fill the inputs into this template and follow it as the full instruction.

### CSS SVG Wave Generator

Generate SVG code for a page section divider.

- Wave type: {{Wave type}}
- Fill color: {{Fill color}}
- Height in px: {{Height in px}}
- Position: {{Position}}
- Flip direction: {{Flip direction}}

Write one inline SVG with a viewBox, preserveAspectRatio set to none, and a path built for the chosen type, so it stretches to the full width. Set the height from the input and the width to 100 percent. Use display: block and a one-pixel overlap so no hairline gap shows between sections.

Flip the path with a transform when asked. Show the SVG, then the small CSS wrapper that places it, and a comment on which number to change for a gentler or steeper wave. Keep the code under 40 lines.

## Pitfalls

- Leaving preserveAspectRatio at the default, so the wave does not stretch to the full width.
- Letting the SVG sit inline, which adds a gap below it from line height.
- Using fixed pixel widths that break on mobile.
