Skip to content
Backgrounds51 / 118

Flute Light

A crescent of light seen through dark fluted glass. A bright field of light, with a dark orb biting into it from the side, sits behind a pane of fine vertical ribs, and every rib is a real convex cylinder lens: it shows its own small, inverted image of the light, shaded like polished glass, so the light breaks into a calm rhythm of flutes and its edges dissolve rib by rib. It behaves like liquid glass: the glass never bends, only what you see through it moves. Under your cursor the glass swells like a drop of liquid and magnifies the light, the dark orb drifts after you with a fluid lag, a click sends a refraction ripple shimmering out through the glass, and scrolling slides the pane across the light.

WebGL2Real rib opticsMonochromeLiquid glassScroll slideReduced-motion safe
Hover to swell the glassClick for a ripple

Tweak

LIVE

Glass

#ffffff
#000000
26.0
3.0

Light

1.00
1.00
1.00

Interactive

Hover to swell the glass, click for a ripple, scroll to slide the pane

Props

11 props
  • colorstring
    Colour of the light seen through the glass.default "#ffffff"
  • backgroundstring
    Background, seen where there is no light.default "#000000"
  • ribsnumber
    Width of each glass rib, in px per 1000px of the frame's size.default 26
  • refractionnumber
    How much of the scene each rib gathers into itself.default 3
  • sizenumber
    Size of the dark orb biting into the light.default 1
  • softnessnumber
    Softness of the light's edges.default 1
  • speednumber
    Speed of the idle drift.default 1
  • interactiveboolean
    Cursor swell and orb, click ripple, scroll slide.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.