Light and Shadow

Creating nice shadow effects for elements on your Web page can be a daunting task. There are several CSS techniques out there to create drop shadows, but doing soft shadows without pre-computing images on the server side seemed to be impossible — so far.

Martin Kufner developed a Javascript framework that deals with the imagination of shadow throwing layers. When you include lightandshadow.js on your Web page, you can create a light source, define its position and size with a few lines of Javascript code and enjoy absolutely real looking soft shadows that are thrown by any of your HTML elements of some special CSS class. Wicked.


  1. Sounds almost too good to be true 🙂 Server unavailable

  2. I just checked again, works for me.

  3. Martin Kufner says:

    Webserverumstellung ….

  4. Nice!