# Water drop loader

> A single drop falls, hits the surface and spreads two soft ripples before the next one comes.

- Category: [Loaders](https://library.aimran.es/components/loaders)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/css-drop
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

A falling drop feels calm and a little zen, so this loader suits a spa’s booking page, a skincare brand selling moisturizers or a weather app fetching the rain forecast. It also fits a water utility checking a meter reading. The drop falls, touches the surface and sends out two rings, one slightly after the other.

Slow it down a touch for wellness brands; the pause between drops is part of the effect. It needs vertical room to fall, so it looks cramped inside buttons. Blues and teals are the obvious choice, but a single warm color works for coffee or oils.

## Code

### HTML

```html
<div class="ul-drop"><b></b><i></i><i></i></div>
```

### CSS

```css
.ul-drop {
  --c1: #0071e3;
  --c2: #8ec5ff;
  --s: 72px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --bg: #f5f5f7;
}

.ul-drop {
  position: relative;
  width: calc(var(--s) * 2);
  height: calc(var(--s) * 2);
}

.ul-drop b {
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(var(--s) / 5);
  height: calc(var(--s) / 4);
  margin-left: calc(var(--s) / -10);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--c1);
  animation: ul-drop calc(1.6s / var(--k)) cubic-bezier(.5,0,1,1) infinite;
}

.ul-drop i {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: var(--s);
  height: calc(var(--s) / 4);
  margin-left: calc(var(--s) / -2);
  border-radius: 50%;
  border: 2px solid var(--c1);
  opacity: 0;
  animation: ul-drop-r calc(1.6s / var(--k)) ease-out infinite;
}

.ul-drop i:last-of-type {
  animation-delay: calc(.2s / var(--k));
}

@keyframes ul-drop {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  45% {
    transform: translateY(calc(var(--s) * 1.55));
    opacity: 1;
  }
  46%,100% {
    opacity: 0;
    transform: translateY(calc(var(--s) * 1.55));
  }
}

@keyframes ul-drop-r {
  0%,45% {
    transform: scale(.1);
    opacity: 0;
  }
  50% {
    opacity: .9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
```

### React

```tsx
import type { CSSProperties } from "react";

const css = `
.ul-drop {
  position: relative;
  width: calc(var(--s) * 2);
  height: calc(var(--s) * 2);
}

.ul-drop b {
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(var(--s) / 5);
  height: calc(var(--s) / 4);
  margin-left: calc(var(--s) / -10);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--c1);
  animation: ul-drop calc(1.6s / var(--k)) cubic-bezier(.5,0,1,1) infinite;
}

.ul-drop i {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: var(--s);
  height: calc(var(--s) / 4);
  margin-left: calc(var(--s) / -2);
  border-radius: 50%;
  border: 2px solid var(--c1);
  opacity: 0;
  animation: ul-drop-r calc(1.6s / var(--k)) ease-out infinite;
}

.ul-drop i:last-of-type {
  animation-delay: calc(.2s / var(--k));
}

@keyframes ul-drop {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  45% {
    transform: translateY(calc(var(--s) * 1.55));
    opacity: 1;
  }
  46%,100% {
    opacity: 0;
    transform: translateY(calc(var(--s) * 1.55));
  }
}

@keyframes ul-drop-r {
  0%,45% {
    transform: scale(.1);
    opacity: 0;
  }
  50% {
    opacity: .9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
`;

export default function LoaderDrop() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#0071e3",
          "--c2": "#8ec5ff",
          "--s": "72px",
          "--k": "1",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="ul-drop"><b></b><i></i><i></i></div>
      </div>
    </>
  );
}
```

## Prompt for AI assistants

Paste this into ChatGPT, Claude, Cursor, v0 or Lovable to adapt the block to your stack (Tailwind, Vue, Svelte…):

````text
I want to add the “Water drop loader” block (Loaders) from AIMRAN Library to my project.

## What it is
A single drop falls, hits the surface and spreads two soft ripples before the next one comes.

## Chosen settings
- Main color: #0071e3
- Secondary color: #8ec5ff
- Size: 72px (from 24 to 120px)
- Speed: 1x (from 0.5 to 2x)

## What I need
1. Add it to my project with the same look and animation as the reference code: same sizes, colours, radii, shadows, timings and easing.
2. It is built with plain HTML and CSS (the reference wraps it in a React component with its CSS). If my project uses something else (Vue, Svelte, Astro, plain HTML…), translate it without losing any behaviour. If I use Tailwind, turn the styles into classes; if not, keep the CSS in its own file.
3. Expose the settings above as props (or CSS variables) with those values as defaults.
4. Make it work well on phones: nothing that depends only on hover, touch targets of at least 44 px and no overflow on 320 px screens.
5. Make it look right in light and dark mode.
6. Keep it accessible: semantic HTML, roles and aria-* where needed, visible focus and keyboard support.
7. Respect prefers-reduced-motion: with reduced motion, no big animations but the same end result.

## Reference code
```tsx
import type { CSSProperties } from "react";

const css = `
.ul-drop {
  position: relative;
  width: calc(var(--s) * 2);
  height: calc(var(--s) * 2);
}

.ul-drop b {
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(var(--s) / 5);
  height: calc(var(--s) / 4);
  margin-left: calc(var(--s) / -10);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--c1);
  animation: ul-drop calc(1.6s / var(--k)) cubic-bezier(.5,0,1,1) infinite;
}

.ul-drop i {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: var(--s);
  height: calc(var(--s) / 4);
  margin-left: calc(var(--s) / -2);
  border-radius: 50%;
  border: 2px solid var(--c1);
  opacity: 0;
  animation: ul-drop-r calc(1.6s / var(--k)) ease-out infinite;
}

.ul-drop i:last-of-type {
  animation-delay: calc(.2s / var(--k));
}

@keyframes ul-drop {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  45% {
    transform: translateY(calc(var(--s) * 1.55));
    opacity: 1;
  }
  46%,100% {
    opacity: 0;
    transform: translateY(calc(var(--s) * 1.55));
  }
}

@keyframes ul-drop-r {
  0%,45% {
    transform: scale(.1);
    opacity: 0;
  }
  50% {
    opacity: .9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
`;

export default function LoaderDrop() {
  return (
    <>
      <style>{css}</style>
      <div
        style={{
          "--c1": "#0071e3",
          "--c2": "#8ec5ff",
          "--s": "72px",
          "--k": "1",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="ul-drop"><b></b><i></i><i></i></div>
      </div>
    </>
  );
}
```

Give me the complete final code, ready to paste, and tell me in one line where to put it in my project.
````
