Home » jQuery5 February 2010

jQuery: Cool Bouncing Navigation with easing plugin

Here, I will be showing you how to create a cool bouncing navigation with jQuery and jQuery easing plugin. The content appears with the bouncing effect as you navigate through the menu.

You need jQuery Library and the jQuery easing plugin. But you need not worry, I have zipped them all in the download file.

View Demo || Download Code

Basically, there are 3 parts – CSS, HTML and Javascript.

Here is the HTML part:-

In the HTML part, the div with id=navigation contains menus. And the div with the class=content contains the content data related with each menu. By default, only the home content is shown. The rest of others are made hidden.

The displaying, hiding, padding, maintaining width, height, font color, background color, etc. are controlled by CSS. Here is the CSS part:-

The bouncing effect is performed through Javascript.

In the JS code above, the effect is performed when the a href link of div id=navigation is clicked. Here are the steps performed:-
– make the height of content to 1px with animate function.
– add class hide to all div with class content
– remove style attribute from the div with class content
– animate the div content to the height 300px with easeOutBounce effect (This effect is one of the effects of jQuery easing plugin. This gives the bouncing effect.)

That’s all we need for the cool bouncing navigation effect.

View Demo || Download Code

Thanks.

jQuery

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed
  • Chaudharyrakeshcds

    thanks bro …i want find easing plugin and i am get here so thanks again …