Skip to content
Backgrounds08 / 118

Fluted Glass

A soft orb of lavender-white light, falling off through violet into deep indigo, seen through a pane of vertical ribbed glass. Each rib is a little lens that stretches the light into stepped gradients with a fine highlight and a touch of rainbow at the rim. The light drifts toward your cursor, a click blooms a pulse, and scrolling slides the glass across the light.

WebGLRefracting glass ribsCursor lightGSAPReduced-motion safe
Move the lightClick for a pulse

Tweak

LIVE

Light

#ddd4dc
#a395b0
#353aa6
#030308
1.00

Glass

27px
5.6

Motion

1.00

Interactive

Light follows the cursor, clicks pulse

Props

12 props
  • corestring
    Colour of the hot centre of the light.default "#ddd4dc"
  • glowstring
    Colour of the glow around it.default "#a395b0"
  • rimstring
    Colour the light falls off into at its rim.default "#353aa6"
  • backgroundstring
    Background.default "#030308"
  • ribsnumber
    Width of each glass rib, in px at 1000px tall (scales with the height).default 27
  • refractionnumber
    How strongly each rib refracts the light.default 5.6
  • sizenumber
    Size of the orb of light.default 1
  • speednumber
    Speed of the idle drift.default 1
  • interactiveboolean
    Cursor light and click pulses.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.