Component packs › Backdrop › Rain on Glass

Rain on Glass

Drops slip down a misted pane in fits and starts, each a small lens; draw with the pointer to wipe a clear streak.

Rain on Glass is a background from Backdrop, a component pack with 6 animated backgrounds: Animated backgrounds made of fields, not blobs, that answer the pointer and the scroll. Price: $2 for the whole pack.

Built with: stick-slip drops, lens drops, wipe and re-mist.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Rain on Glass props

PropTypeDefaultDescription
rainnumber1How hard it rains, 0.3 to 2. Default 1.

Methods on the ref

Use it in React

import RainGlass from './RainGlass';

<RainGlass />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Backdrop

Good for: Animated backgrounds.