Sliding Fixed Top Navigation on Scroll with jQuery

Top sliding Nav is a cross-browser, fully responsive and multi screen navigation system based on jQuery and other JavaScript & CSS libraries. You can create sliding fixed top navigation on scroll with the help of this jQuery and CSS plugin / code snippet.

Plugin Overview

Plugin: Top Sliding Nav
Author: Chris Gruber
Licence: MIT Licence
Published: May 2, 2019
Repository: Fork on CodePen
Dependencies: jQuery 2.1.3 or Latest version, Modernizr JS , Normalize CSS , PreFixFree JS
and Font Awesome 4

File Type: zip archive (HTML, CSS & JavaScript)
Package Size: 8 KB

How to Use Sliding Fixed Top Navigation

1. To getting started with Top Sliding Nav, load the jQuery JavaScript library, Font Awesome for Icons and other necessary assets into HTML document.

<!-- jQuery -->
<script src=""></script>

<!-- Font Awesome 4-->
<link href="" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">

<!-- Normalize CSS -->	
<link rel="stylesheet" href="" />

<!-- Modernizer JS -->
<script src=""></script>

<!-- PreFixFree JS -->
<script src=""></script>

2. Also include the Sliding Top Nav CSS and JavaScript files into your webpage.

<!-- Top Sliding Nav CSS -->
<link rel="stylesheet" href="css/style.css">

<!-- Top Sliding Nav JS -->
<script  src="js/index.js"></script>

3. After including all assets, finally create HTML structure for navigation and header like below.

<header class="main_header">
    <div class="row">
     <div class="content"> 
        <a class="logo" href="#">GD</a>

        <div class="mobile-toggle">

                <li><a href="#sec01">Section 01</a></li>
                <li><a href="#sec02">Section 02</a></li>
                <li><a href="#sec03">Section 03</a></li>
                <li><a href="#sec04">Section 04</a></li>
    </div> <!-- END row -->

Be the first to comment

Leave a Reply

Your email address will not be published.


20 − eighteen =

This site uses Akismet to reduce spam. Learn how your comment data is processed.