Admin

May 10th

37 Comments

Share

So here will create a simple bounce out vertical menu with the help of little bit css3 and jquery framework. Beautiful navigation menu can stand out your website from the crowd of creative navigations. That’s why we tried to create vertical menu which on mouse hover give a nice bounce out sliding effect. Lets begin..

Demo   Download

Files Needed before Starting

jQuery Framework – Download

jQuery Easing Plugin – Download

 

Here we will use jQuery easing plugin to get easeoutbounce effect directly. Therefore we don’t need to code much. We can get the desired effect in simple steps.

 

Step 1 : HTML

Will create li elements for our navigation menu with description in paragraph tag. Check out the below document for more clarification.

<div id="vnav">
     <ul>
         <li><h1>Home</h1><p>Home page</p></li>
         <li><h1>About Us</h1><p>Know About our company</p></li>
         <li><h1>Portfolio</h1><p>Check our Portfolio</p></li>
         <li><h1>Contact Us</h1><p>Have a question?</p></li>
     </ul>
</div>

Step 2 : CSS Style

Here we will use some css3 properties to get some cool UI effect like box-shadow and text-shadow.

Box-Shadow – Box shadow will give some drop down effect to the whole box element ( li here ).

Box shadow takes 3 lengths and a color as attributes. ( Horizontal offset, Vertical offset, Blur radius and color).

Text-Shadow – Same as box-shadow x offset, y offset, blur and color.

Check the below codes for more clarification.

Note : Make li overflow to hidden so that paragraph text will be hidden and later will use jQuery to show paragraph text.

li {
	height:20px;
	width:200px;
	overflow:hidden;  /* Important */
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        line-height: 1;
                              /* Rounded Corners */
       -moz-border-radius: 5px;
       -webkit-border-radius: 5px;
                              /* Box Shadow */
       -moz-box-shadow: 0 1px 3px #999;
       -webkit-box-shadow: 0 1px 3px #999;
                              /* Text Shadow */
       text-shadow: 0 -1px 1px #222;
       border-bottom: 1px solid #222;
       padding: 7px 10px 6px;
       margin-top:5px;
       background-color:#a447cf;
}
li p {
	margin-top:10px;
	font-size:12px;
	color:#6CF;
}

Step 3 : Link Jquery and Easing Plugin

Now we got jquery framework and easing plugin with us so its the time to link it with html document. Along with Empty custom.js so we can write codes in there later.

<script src="jquery.min.js" type="text/javascript"></script>
<script src="custom.js" type="text/javascript"></script>
<script src="jquery.easing.1.3.js" type="text/javascript"></script>

Step 4 : jQuery

Here will use mouseover and mouseout properties of jQuery to get the final Effect. Using animate function will change the height of li element so that it can show the paragraph text. And on mouseout will change its height back to normal pixel.

$(document).ready(function(){
    //When Mouse rolls over li
    $("li").mouseover(function(){
        $(this).stop().animate({height:'60px'},{queue:false, duration:600, easing: 'easeOutBounce'})
    });
    //When Mouse cursor removed from li
    $("li").mouseout(function(){
        $(this).stop().animate({height:'20px'},{queue:false, duration:600, easing: 'easeOutBounce'})
    });
});

Demo   Download

Our incredible deals of vbulletin hosting and free 650-195 tutorials make your success certain for the final 1z0-451 exam and you can get pass4sure 70-681 dumps & ccna.

Author : Admin

37 Responses to “Create Bounce out Vertical menu with jQuery”

  1. [...] This post was mentioned on Twitter by Antonio Capuozzo, vikas ghodke. vikas ghodke said: RT @wddesk Create Bounce out Vertical menu with jQuery http://bit.ly/cLoTZl [...]

  2. Ilie Ciorba says:

    Thank’s, very useful!

    [Reply]

    Prakash Reply:

    Thanks Mate for your valuable comment.

    [Reply]

  3. motercalo says:

    This blog is very interesting

    [Reply]

    Prakash Reply:

    Thank You.

    [Reply]

  4. [...] Create Bounce out Vertical menu with jQuery [...]

  5. [...] Cre­ate Bounce out Ver­ti­cal menu with jQuery | Web Design­ers Desk [...]

  6. Nice effect. I like the way the menu item falls down and shakes. Thanks for the tutorial.

    [Reply]

    Admin Reply:

    Glad You liked it. Stay tune for more tutorials.

    [Reply]

  7. Beben says:

    so smooth…thanks for share

    [Reply]

    Admin Reply:

    Thank You

    [Reply]

  8. [...] Create Bounce out Vertical menu with jQuery [...]

  9. [...] mediante  jQuery y CSS3Crear un Twitter Ticker con jQueryCrear una galería de imágenes con jQueryCrear un menú vertical con jQueryCrear un carrusel de imágenes con jQuery CycleCrear un contenedor deslizante usando CSS y [...]

  10. Amazing….. It feels good to find someone who has concern for things that are usually overlooked.“No matter how pleasant something would appear, there will always be a room for improvement” and you have clearly brought it out in this post del.icio.us poetry. So all job seekers mus find it interesting too.

    [Reply]

  11. [...] Create Bounce out Vertical menu with jQuery [...]

  12. [...] Create Bounce out Vertical menu with jQuery [...]

  13. [...] 1. Create Bounce out Vertical menu with jQuery [...]

  14. [...] 1. Create Bounce out Vertical menu with jQuery [...]

  15. [...] 1. Create Bounce out Vertical menu with jQuery [...]

  16. Finally a smart blogger…I love how you’re thinking and writing!

    [Reply]

  17. :O So mush Info :O : THis Is he MOst AMAzing SIte DUDe:

    [Reply]

  18. [...] Go here to see the original: Create Bounce out Vertical menu with jQuery | Web Designers Desk [...]

  19. [...] 14- Create Bounce out Vertical menu with jQuery [...]

  20. Hey admin, very informative blog post! Pleasee continue this awesome work..

    [Reply]

  21. [...] Create Bounce out Vertical menu with jQuery [...]

  22. JAY says:


    CheapTabletsOnline.Com. Canadian Health&Care.Special Internet Prices.No prescription online pharmacy.Best quality drugs. No prescription drugs. Buy drugs online

    Buy:Cialis Soft Tabs.Super Active ED Pack.Soma.Tramadol.Levitra.Zithromax.Viagra Professional.Cialis.Cialis Professional.Viagra Soft Tabs.VPXL.Viagra Super Active+.Maxaman.Propecia.Cialis Super Active+.Viagra Super Force.Viagra….

Leave a Reply