# Gooey Dots Loader

> Two dots that melt into each other like liquid as they pass, using the blur and contrast filter trick.

- Category: [CSS Loaders & Spinners](https://copy-css.com/category/loaders)
- Tags: metaball, blur, contrast, filter, liquid
- Live preview: https://copy-css.com/snippets/gooey-dots-loader
- License: Free for personal and commercial use. No signup, no attribution required.

## HTML

```html
<div class="loader-gooey" role="status" aria-label="Loading"></div>
```

## CSS

```css
/* The container needs a solid background for the contrast trick to work */
.loader-gooey {
  position: relative;
  width: 120px;
  height: 44px;
  background: #fff;
  filter: contrast(20);
}

.loader-gooey::before,
.loader-gooey::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #000;
  filter: blur(5px);
}

.loader-gooey::before {
  left: 48px;
}

.loader-gooey::after {
  left: 8px;
  animation: loader-gooey-move 1.8s ease-in-out infinite alternate;
}

@keyframes loader-gooey-move {
  to { transform: translateX(80px); }
}

@media (prefers-reduced-motion: reduce) {
  .loader-gooey::after { animation-duration: 4s; }
}
```

## Notes

- This CSS Gooey Dots Loader is 37 lines of pure CSS (0.7 KB) with no JavaScript and no dependencies. It uses keyframe animations, transforms, filters and reduced-motion support.
- In JSX use `className` instead of `class`. In Tailwind projects put the CSS in the global stylesheet.
