Advanced Search Usage Terms Submit Contact
Dynamic Drive CSS Library

CSS Library: Horizontal CSS Menus: Here

CSS Animated Underline Menu

Author: Dynamic Drive

This menu takes the simplicity and elegance of an underline beneath text and animates it for a touch of liveliness. Three effects are presented- drawing the line horizontally, drawing and thickening the line, and finally, drawing and expanding the line to cover the entire menu item.

The "underline" is created using an absolutely positioned pseudo element positioned beneath each menu item. Whenever the user mouses over an item, CSS transition is used to animate the width of the pseudo element, and in the 2nd and 3rd demos, its height property as well. The result is a clean looking yet modern horizontal menu style.

Demo:

The CSS:

The HTML:

Code Info

Rate this code:

Date Posted: 02/16/2016

Revision History: None

Usage Terms: Click here

Your Comments
Copyright 2006-2016 Dynamic Drive