Creating a Lightbox with CSS3 and JavaScript

There have been many imitations – Fancybox and Thickbox to name just two – but Lightbox still remains as the favoured way to present images to a user. This, primarily, is due to its 3d animation and background dimming which allows the user to view the image without any distraction. It’s a useful, timeless technique.