{
  "id": "liquid-fill-progress",
  "name": "Liquid Fill Progress",
  "category": "loaders",
  "tags": [
    "wave",
    "water",
    "circle",
    "percentage",
    "rotating"
  ],
  "description": "A round gauge that fills with gently waving water up to the value set in a custom property.",
  "url": "https://copy-css.com/snippets/liquid-fill-progress",
  "markdown": "https://copy-css.com/snippets/liquid-fill-progress.md",
  "html": "<div class=\"liquid-progress\" style=\"--progress: 60\" role=\"progressbar\" aria-label=\"Loading\" aria-valuenow=\"60\" aria-valuemin=\"0\" aria-valuemax=\"100\">60%</div>",
  "css": ".liquid-progress {\n  --progress: 50;\n  position: relative;\n  isolation: isolate;\n  display: grid;\n  place-items: center;\n  width: 120px;\n  height: 120px;\n  overflow: hidden;\n  border: 4px solid #0ea5e9;\n  border-radius: 50%;\n  background: #e0f2fe;\n  color: #0c4a6e;\n  font: 800 24px/1 system-ui, sans-serif;\n}\n\n/* Two big rotating rounded squares make the wavy surface */\n.liquid-progress::before,\n.liquid-progress::after {\n  content: \"\";\n  position: absolute;\n  top: calc((100 - var(--progress)) * 1% - 8px);\n  left: 50%;\n  z-index: -1;\n  width: 220%;\n  aspect-ratio: 1;\n  border-radius: 42%;\n  translate: -50% 0;\n  animation: liquid-progress-wave 7s linear infinite;\n}\n\n.liquid-progress::before {\n  background: #7dd3fc;\n}\n\n.liquid-progress::after {\n  top: calc((100 - var(--progress)) * 1% - 4px);\n  border-radius: 45%;\n  background: #38bdf8;\n  animation-duration: 10s;\n}\n\n@keyframes liquid-progress-wave {\n  to { rotate: 1turn; }\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .liquid-progress::before,\n  .liquid-progress::after { animation: none; }\n}",
  "features": [
    "keyframe animations",
    "CSS Grid",
    "aspect-ratio",
    "custom properties",
    "reduced-motion support"
  ],
  "customProperties": [
    {
      "name": "--progress",
      "value": "50"
    }
  ]
}
