Skip to content
Backgrounds09 / 118

Frosted Glass

A kitten presses its paws against a pane of fogged, condensation-beaded glass, and it is alive: it scratches at the glass in bouts, its claws cutting thin clear lines through the fog, breathes, looks around, turns toward your cursor and reaches for it. Run your cursor over it to wipe the fog away: the kitten shows through clearer, beads of water gather along the edges of the wipe, and the fog creeps back in a mottled film. A click breathes a bloom of fresh fog onto the glass and startles it into scrabbling, drops now and then run down the pane leaving clear trails, and scrolling pushes in with depth parallax.

WebGLLiving kittenWipe the fogClaw scratchesRunning dropsGSAPReduced-motion safe
Wipe the fogClick to breathe

Tweak

LIVE

Tone

#f6f6fc
#030305

Glass

1.00

Water beads

Beads along the edges of wipes and trails

1.0

Motion

1.00
5.0s

Kitten moves

Scratches at the glass, breathes, looks around and reacts to you

Interactive

The cursor wipes the fog, clicks breathe on the glass

Props

17 props
  • imagestring
    The fogged photo.default "/backgrounds/frosted-cat/cat.jpg"
  • clearImagestring
    The same photo with the fog wiped away, shown where the glass is wiped.default "/backgrounds/frosted-cat/clear.jpg"
  • depthImagestring
    Depth map: R = depth, white = near (parallax); G = the body (breathing).default "/backgrounds/frosted-cat/depth.png"
  • rigImagestring
    Rig mask for the kitten's head (B channel).default "/backgrounds/frosted-cat/rig.png"
  • pawsImagestring
    The paws as solid layers: the photo minus the glass behind them.default "/backgrounds/frosted-cat/diff.png"
  • shadowstring
    Colour of the darkest shadows.default "#030305"
  • lightstring
    Colour of the brightest light.default "#f6f6fc"
  • fognumber
    Fog density: 0 is nearly clear glass, 1 the photo as shot, more is thicker.default 1
  • brushnumber
    Size of the cursor's wipe.default 1
  • fogBacknumber
    Seconds a wiped patch takes to fog over again.default 5
  • dropletsnumber
    How often drops run down the glass (0 = never).default 1
  • beadsboolean
    Water beads along the edges of wipes and trails.default true
  • movingboolean
    The kitten scratches at the glass, breathes, looks around and reacts to you. Turn off for your own photo.default true
  • interactiveboolean
    Cursor wipes and click breaths.default true
  • scrollerElement | null
    Scroll container, if the page does not scroll the window.
  • childrenReactNode
    Foreground content, drawn above the glass.
  • classNamestring
    Size it, e.g. h-screen w-full.