Skip to content
Hazine

Interactive surfaces

1 of 5 shipped. Each take is a different structure, and the note under its title says how.

  • interactive surfaces

    A single card lit by one radial layer positioned through custom properties set on pointer move, with content above the layer and no layer on touch.

    shadcn add @hazine/spotlight-card

Planned 4

  • Tilt card

    Transforms the card geometry in 3D rather than painting a light layer; focus within shows the standard focus ring with no tilt, and both touch input and reduced motion leave the card flat.

  • Border beam

    Time-driven, not pointer-driven: a pure CSS keyframe animation on the border ring, driven by state (active, paused) through animation-play-state with no per-frame JavaScript, that becomes a static accent border under reduced motion.

  • Magnetic hover

    Moves the element itself by translate based on pointer proximity, while the hit area stays at the original position through a static outer box so the 24px target never shifts away from the pointer or from keyboard focus.

  • Pointer-follow glow grid

    Group-level effect: one pointermove listener on the parent writes coordinates that each child resolves relative to itself, lighting borders rather than fills, compared with the self-contained single-card spotlight.