Component packs › Backdrop › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
rain | number | 1 | How hard it rains, 0.3 to 2. Default 1. |
destroy(): voidimport RainGlass from './RainGlass';
<RainGlass />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Animated backgrounds.