Sticky Hoverable Side Navigation with jQuery

Simple, easy to use jQuery plugin that lets you create Sticky Hoverable Side Navigation with cool sliding effect on hover.

Plugin Overview

Plugin: hoverSlide
Author: jsfanatik
Licence: MIT Licence
Published: January 17, 2024
Repository: Fork on GitHub
Dependencies: jQuery 1.3.1 or Latest version

File Type: zip archive (HTML & JavaScript)
Package Size: 99.2 KB

How to Use Sticky Hoverable Side Navigation :

1. Load the jQuery and hoverSlide.js file into HTML document.

<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.4.0.min.js"></script>

<!-- hoverSlide JS -->
<script src="hoverSlideJS/hoverSlide.js"></script>

2. Build HTML structure for navigation and add your links into it like below.

    <div id="click1-tab" class="tab tab1"><a href="#"> HOME </a></div>
    <div id="click2-tab" class="tab tab2"><a href="#"> TUTORIALS </a></div>
    <div id="click3-tab" class="tab tab3"><a href="#"> PLUGINS </a></div>
    <div id="click4-tab" class="tab tab4"><a href="#"> BLOG </a></div>

3. Call the plugin in jQuery document ready function to active the navigation and done.

$(document).ready(function(){
      $(".tab1").hoverSlide({
        backgroundColor: "#2196F3"
      });

      $(".tab2").hoverSlide({
        top: 120,
        backgroundColor: "#F1C40F"
      });

      $(".tab3").hoverSlide({
        top: 180,
        backgroundColor: "#f44336"
      });

      $(".tab4").hoverSlide({
        top: 240,
        backgroundColor: "#555"
      });
});

Leave a Comment

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

About CodeHim

Free Web Design Code & Scripts - CodeHim is one of the BEST developer websites that provide web designers and developers with a simple way to preview and download a variety of free code & scripts. All codes published on CodeHim are open source, distributed under OSD-compliant license which grants all the rights to use, study, change and share the software in modified and unmodified form. Before publishing, we test and review each code snippet to avoid errors, but we cannot warrant the full correctness of all content. All trademarks, trade names, logos, and icons are the property of their respective owners... find out more...

Please Rel0ad/PressF5 this page if you can't click the download/preview link

X