{
  "id": "animated-waves",
  "name": "Animated Waves",
  "category": "effects",
  "tags": [
    "waves",
    "svg background",
    "hero",
    "ocean",
    "layered",
    "animation"
  ],
  "description": "Layered SVG waves rolling along the bottom of a hero section at different speeds, all in background layers.",
  "url": "https://copy-css.com/snippets/animated-waves",
  "markdown": "https://copy-css.com/snippets/animated-waves.md",
  "html": "<div class=\"wave-hero\">\n  <h3>Ride the wave</h3>\n</div>",
  "css": ".wave-hero {\n  position: relative;\n  display: grid;\n  place-items: center;\n  width: 280px;\n  height: 160px;\n  overflow: hidden;\n  border-radius: 18px;\n  background: linear-gradient(180deg, #0ea5e9, #1e3a8a);\n  color: #fff;\n  font-family: system-ui, sans-serif;\n}\n\n.wave-hero h3 {\n  position: relative;\n  z-index: 1;\n  margin: 0 0 30px;\n  font-size: 22px;\n}\n\n.wave-hero::before,\n.wave-hero::after {\n  content: \"\";\n  position: absolute;\n  right: 0;\n  bottom: 0;\n  left: 0;\n  height: 50px;\n  background: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q100 0 200 30 T400 30 V60 H0Z' fill='%23fff'/%3E%3C/svg%3E\") repeat-x 0 100% / 200px 100%;\n  animation: wave-hero-roll 6s linear infinite;\n}\n\n.wave-hero::before {\n  height: 60px;\n  opacity: 0.35;\n  animation-duration: 9s;\n  animation-direction: reverse;\n}\n\n.wave-hero::after {\n  opacity: 0.8;\n}\n\n@keyframes wave-hero-roll {\n  to {\n    background-position-x: 200px;\n  }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .wave-hero::before,\n  .wave-hero::after {\n    animation: none;\n  }\n}",
  "features": [
    "keyframe animations",
    "linear gradients",
    "CSS Grid",
    "reduced-motion support"
  ],
  "customProperties": []
}
