Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProA night street seen through a rain-soaked window, rendered in WebGL: hundreds of simulated droplets bead up, break loose, run down the glass leaving beaded trails and merge on contact, and every drop acts as a tiny lens that refracts the sharp, inverted neon scene behind it while the rest of the city melts into bokeh. A layer of condensation fogs the pane, running drops cut clear channels through it, and the pointer wipes the fog and drops away like a fingertip before the mist slowly creeps back. Uses any photo you pass in, falls back to a blurred CSS photo without WebGL and renders one settled still frame under reduced motion.
Included in UltimateCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
The copied code, markdown and prompt include the values you set here.
import { RainNeonGlass } from "@/components/hyperblur-pro/rain-neon-glass"
<div style={{ position: "relative", height: "100vh" }}>
<RainNeonGlass image="/photos/night-street.jpg" fog={0.85} />
</div>| Prop | Type | Default | Description |
|---|---|---|---|
| image | string | "https://images.unsplash.com/photo-1533050487297-09b450131914?auto=format&fit=crop&w=1600&q=80" | Photo behind the glass. Night scenes with point lights give the best bokeh. Must allow CORS. |
| rain | number | 1 | How much rain hits the glass. 0 stops new drops. |
| fog | number | 0.85 | Strength of the condensation layer, from 0 to 1. |
| refraction | number | 1 | How strongly each drop bends the scene behind it. |
| tint | string | "#ff2a6d" | Color pushed into the shadows for the neon grade. |
| wipe | boolean | true | Moving the pointer wipes fog and drops off the glass. |
| wipeRadius | number | 64 | Radius of the wipe brush in pixels. |
| introWipe | boolean | true | Draws one automatic wipe stroke across the glass on mount. |
| speed | number | 1 | Simulation speed multiplier. |
| maxDpr | number | 1.5 | Upper limit for device pixel ratio. |
Source code is included in Ultimate