SPOTLIGHT
Move the cursor across this surface.
INTERACTION_007CSS + JS
Mouse Spotlight Card
A soft radial light follows the cursor across the surface.
Cards / LightView
The card rotates on X and Y within a strict 6 degree envelope, with a light sheen following the same vector. Reserved for featured content.
const MAX = 6;
card.addEventListener("pointermove", (e) => {
const r = card.getBoundingClientRect();
const px = (e.clientX - r.left) / r.width - 0.5;
const py = (e.clientY - r.top) / r.height - 0.5;
card.style.transform =
`perspective(900px) rotateY(${px * MAX * 2}deg) rotateX(${-py * MAX * 2}deg)`;
});
card.addEventListener("pointerleave", () => {
card.style.transform = "perspective(900px) rotateX(0) rotateY(0)";
});Move the cursor across this surface.
A soft radial light follows the cursor across the surface.
Blur 24px · edge light