Let There Be More Light: Web Demo: CSS Dynamic Point Light Source & Parallax Shadows
This demonstrates a high-performance method of rendering dynamic CSS drop shadows from a simulated point light source.
The note and sun light source elements have been made interactively user-draggable by the inclusion of an external draggability package.
Until I have this documented, you can see the code on Codepen at https://codepen.io/kupietz/pen/LEpzJgL.
Update, Feb 2026:This is not my work but it deserves a mention here. I've been completely outdone. Check this demo out. This guy designed an entire css system around physical lighting: https://ambientcss.vercel.app/ Github: https://github.com/kikkupico/ambientcss








