Skip to navigation

Show / Hide Navigation (JavaScript)

An example of a simple technique to show and hide navigation, using JavaScript. Particularly useful when designing for mobile.

This also uses CSS gradients to produce the "show" and "hide" button icons instead of images.

Delightful.

See the related HTML Dog Techniques article for more.

HTML Dog