Friday, 23 November 2012

Add Awesome CSS and jQuery Fixed Fade Out Menu For Blogger

The aim is to have a fixed navigation that follows the user when he scrolls, and only subtly showing itself by fading out and becoming almost transparent. When the user hovers over it, the menu then becomes opaque again.
Inside of the navigation we will have some links, a search input and a top and bottom button that let the user navigate to the top or the bottom of the page.

Now lets see how to add it on blogger.

How To Add Fixed Fade Out Menu To Blogger/Blog?






  • Go To Blogger Dashboard > Design > Edit HTML
  • Search for the tag </head> (Use CTRL+F Function)
  • Copy and paste below code just above/before </head> tag.


  • 
    <link rel="stylesheet" href="http://helperblogger.googlecode.com/files/hb-fadeout.css"/>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>
    <script type="text/javascript">
    $undefinedfunctionundefined) {
    $undefinedwindow).scrollundefinedfunctionundefined){
    var scrollTop = $undefinedwindow).scrollTopundefined);
    ifundefinedscrollTop != 0)
    $undefined'#nav').stopundefined).animateundefined{'opacity':'0.2'},400);
    else    
    $undefined'#nav').stopundefined).animateundefined{'opacity':'1'},400);
    });
    
    $undefined'#nav').hoverundefined
    function undefinede) {
    var scrollTop = $undefinedwindow).scrollTopundefined);
    ifundefinedscrollTop != 0){
    $undefined'#nav').stopundefined).animateundefined{'opacity':'1'},400);
    }
    },
    function undefinede) {
    var scrollTop = $undefinedwindow).scrollTopundefined);
    ifundefinedscrollTop != 0){
    $undefined'#nav').stopundefined).animateundefined{'opacity':'0.2'},400);
    }
    }
    );
    });
    </script>
    



  • Now search for <body> tag
  • Just below it paste the following code.
  • 
    <div id="nav">
    <ul>
    <li><a class="top" href="#top"><span></span></a></li>
    <li><a class="bottom" href="#bottom"><span></span></a></li>
    
    <li><a href='Your Link Here'>Text Here</a></li>
    <li><a href='Your Link Here'>Text Here</a></li>
    <li><a href='Your Link Here'>Text Here</a></li>
    <li><a href='Your Link Here'>Text Here</a></li>
    <li><a href='Your Link Here'>Text Here</a></li>
    <li><a href='Your Link Here'>Text Here</a></li>
    
    <li class="search">
    
    <input type="text"/><input class="searchbutton" type="submit" value=""/>
    </li>
    </ul>
    </div>        
    <div id="top"></div>
    <div class="desc"></div>
    <div id="bottom"></div>
    <div class="scroll"></div>
    
    Customization's

    • Now replace Your Link Here with the link which you want to add to a text.
    • And replace Text Here with the text which you want to appear on fade out menu.

    No comments:

    Post a Comment