Skip to main content

Spotlight Grid

A fine grid revealed by a soft spotlight that follows the cursor, leaving a trail of lit cells. Click to send a ripple through it.

  • 3.7 KB .bexode
  • 9 live inputs
  • Responsive fit Layout
Live runtime

Use it

The code follows your customizations. Install with npm i exodeui.

import { ExodeUICanvas } from 'exodeui';

// spotlight-grid.bexode goes in /public (download it below)
export function SpotlightGrid() {
  return (
    <ExodeUICanvas
      src="/spotlight-grid.bexode"
      fit="Layout"   // responsive: redraws at any container size
      autoPlay
      interactive
      onTrigger={(name) => {
        // fires: 'ripple'
      }}
      style={{ width: '100%', height: 560 }}
    />
  );
}

Inputs

InputTypeDefaultRange
titleTextLight the way in.—
subTextSpotlight grid · move your cursor—
cellNumber4416 – 140
radiusNumber28060 – 900
intensityNumber10 – 2
dotsBooleanfalse—
accentText#5b8cffhex colour
textText#eef1ffhex colour
bgText#06070bhex colour

Events (via onTrigger): ripple