# Liquid Fill Progress

> A round gauge that fills with gently waving water up to the value set in a custom property.

- Category: [CSS Loaders & Spinners](https://copy-css.com/category/loaders)
- Tags: wave, water, circle, percentage, rotating
- Live preview: https://copy-css.com/snippets/liquid-fill-progress
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```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

```css
.liquid-progress {
  --progress: 50;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  overflow: hidden;
  border: 4px solid #0ea5e9;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0c4a6e;
  font: 800 24px/1 system-ui, sans-serif;
}

/* Two big rotating rounded squares make the wavy surface */
.liquid-progress::before,
.liquid-progress::after {
  content: "";
  position: absolute;
  top: calc((100 - var(--progress)) * 1% - 8px);
  left: 50%;
  z-index: -1;
  width: 220%;
  aspect-ratio: 1;
  border-radius: 42%;
  translate: -50% 0;
  animation: liquid-progress-wave 7s linear infinite;
}

.liquid-progress::before {
  background: #7dd3fc;
}

.liquid-progress::after {
  top: calc((100 - var(--progress)) * 1% - 4px);
  border-radius: 45%;
  background: #38bdf8;
  animation-duration: 10s;
}

@keyframes liquid-progress-wave {
  to { rotate: 1turn; }
}

@media (prefers-reduced-motion: reduce) {
  .liquid-progress::before,
  .liquid-progress::after { animation: none; }
}
```

## Notes

- This CSS Liquid Fill Progress is 50 lines of pure CSS (1.0 KB) with no JavaScript and no dependencies. It uses keyframe animations, CSS Grid, aspect-ratio and custom properties.
- Customize with: `--progress`.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
