Archive for April 13, 2010
How to toggle the light on your website?
Today I’d like to show you a way to switch the light off on your website.
What’s the point? Simple … Imagine you’d like to display photos, or a video, or if a box should pop up (for authentication purposes for instance), it’s better if your visitors focus on what you’re trying to draw their attention to. We will help them concentrate by darkening everything else in the background.
In order to do just that we will mainly use some CSS and a bit of javascript to toogle the light on/off.