{
  "id": "hue-rotate-gradient",
  "name": "Hue Rotate Gradient",
  "category": "gradients",
  "tags": [
    "animated",
    "color cycle",
    "filter",
    "rainbow",
    "background"
  ],
  "description": "A gradient that cycles through every hue using a hue-rotate filter on a layer behind the content.",
  "url": "https://copy-css.com/snippets/hue-rotate-gradient",
  "markdown": "https://copy-css.com/snippets/hue-rotate-gradient.md",
  "html": "<div class=\"gradient-hue\"></div>",
  "css": ".gradient-hue {\n  position: relative;\n  isolation: isolate;\n}\n\n/* The filter sits on its own layer so text inside is not recolored */\n.gradient-hue::before {\n  content: \"\";\n  position: absolute;\n  inset: 0;\n  z-index: -1;\n  background: linear-gradient(135deg, #f43f5e, #f59e0b);\n  animation: gradient-hue-cycle 12s linear infinite;\n}\n\n@keyframes gradient-hue-cycle {\n  to { filter: hue-rotate(1turn); }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .gradient-hue::before { animation: none; }\n}",
  "features": [
    "keyframe animations",
    "linear gradients",
    "filters",
    "reduced-motion support"
  ],
  "customProperties": []
}
