Urgent.News

What's breaking now, across thousands of outlets.

More in Culture

Build a spotlight image reveal with CSS masks

A moving spotlight can reveal a different landscape without moving either image. Stack two matching views, apply a radial mask to the upper one, and update its position with JavaScript.

  • Two matching views stacked: grey wireframe terrain and green landscape
  • CSS masks used to reveal upper layer by adjusting position with JavaScript
  • Pointer events update mask position in real-time, simulating moving spotlight

More from Sunday 8 November →