Originals

Caustics

A glass card casts caustics — the moving net of light at the bottom of a pool — onto the page behind it, split into colors like a prism. Move the pointer: you are holding the lamp.

Paste it into ChatGPT, Claude, Cursor or v0.
scale70
speed0.6
intensity1.0

Usage

import { CausticCard } from '@vizzele/react/gl';

<CausticCard spread={90} scale={70}>
  <h3>Liquid light</h3>
  <p>The light underneath moves with your pointer.</p>
</CausticCard>

Props

PropTypeDefaultDescription
spreadnumber90How far the light spills around the card (px).
scalenumber70Size of the light cells (px).
speednumber0.6Animation speed.
intensitynumber1Brightness.
radiusnumber—Corner radius of the projection (defaults to the card’s).
cardClassNamestring—Class for the glass card.

Accessibility

  • Decorative canvas (aria-hidden); the card content is plain HTML.
  • Pauses offscreen and renders one still frame under reduced motion. No WebGL: a soft glow instead.