Skip to content

Stained Glass

A stained-glass window whose pieces light up with the cursor's light and cast their color onto the floor.

Plan
Pro · commercial license
Dependencies
React only
Props
6 (6 adjustable)

Included in Pro and Lifetime. See pricing

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
cellsnumber34Approximate number of glass pieces.
seednumber7Seed of the design; changes the layout of pieces and colors.
lightstring"#fff1d0"Color of the light behind the window.
spreadnumber1How far the light reaches around the cursor.
projectionbooleantrueProjects the window's colors onto the floor.
autobooleantrueAn invisible sun sweeps across the window when there is no cursor.

Installation

With your license

1Set up the Pro registry once

Pro components aren't on npm or in the public shadcn registry: you install them with your license from Furin's private registry.

Use my license

2Install Stained Glass

npx shadcn@latest add @furin-pro/stained-glass

Dependencies

React
18 or later
Other libraries
none
License
commercial

Pro components install into your project: the code is yours and there's nothing else to download.

Keep exploring

  • Plastic bubbles that dent as you pass over them and pop on click with sound; popped ones stay wrinkled.

    Glass

  • A glass card covered in condensation: droplets merge and run down, leaving trails, as you tilt it.

    Glass

  • Fogged glass you wipe clean with your cursor like a bathroom mirror; it slowly fogs up again and sheds droplets.

    Glass