# @dioramajs/particles/drops

Exports of @dioramajs/particles/drops.

## Functions and values

- [default](/docs/api/particles-drops/default.md): Water drops on glass over an element, or over the viewport on `<body>`: rain that beads, runs and leaves wet trails, or a thaw that spreads from a point and leaves meltwater behind its front. Drops catch the light and darken at their rims; nothing behind them is read, so the page stays real DOM and clicks go through. Frames only while drops move or dry.
- [FADE](/docs/api/particles-drops/fade.md): Seconds a drop takes to fade out; a drop that stops running or growing has at least this.
- [Glass](/docs/api/particles-drops/glass.md): Water on the glass: drops that rest and dry, heavy ones that slide down in fits and starts, leave a wet trail and beads, and swallow what they meet. Deterministic for a seed; px, y down.
- [opacity](/docs/api/particles-drops/opacity.md): How much of a drop shows: whole while it runs or grows, then fading over its last `FADE`; with a `lifetime`, also fading over its last third of it, running or not.
- [POOL](/docs/api/particles-drops/pool.md): Drops the instance buffer holds.
- [SLIDE](/docs/api/particles-drops/slide.md): Radius in px (at scale 1) from which a drop is heavy enough to slide.
- [trailProfile](/docs/api/particles-drops/trail-profile.md): Cross-section of a wet trail at `across`, from -1 (one edge) to 1 (the other): its opacity and how light it is. Symmetric about the middle, where the drop ran: a thin glossy line along the centre, a faint film, and darker edges where the water film ends.
- [TRAILS](/docs/api/particles-drops/trails.md): Trail pieces kept; the oldest is overwritten.

## Types

- [Drop](/docs/api/particles-drops/types/drop.md): A drop on the glass, in px from the area's top left, y down.
- [Weather](/docs/api/particles-drops/types/weather.md): What a step needs.
