Coder Social home page Coder Social logo

lhy8878 / jquery.ssmenu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codehimblog/jquery.ssmenu

0.0 0.0 0.0 32 KB

Sticky Side Navigation Menu - Simple, easy to use and user friendly sticky side navigation menu with jQuery ssMenu plugin.

Home Page: https://codehimblog.github.io/jquery.ssMenu/

License: MIT License

HTML 64.34% CSS 19.99% JavaScript 15.68%

jquery.ssmenu's Introduction

jQuery Sticky Side Navigation Menu - ssMenu

Sticky Side Navigation Menu - Simple, easy to use and user friendly sticky side navigation menu with jQuery ssMenu plugin.

Dependency

jQuery 3.3.1 and FontAwesome 4.7.0

How to Use

  1. Load the jQuery and Font Awesome into HTML document.

<!--Font Awesome--> <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"> <!--jQuery--> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'&gt;&lt;/script>

2. Include the ssMenu CSS and JavaScript file into your project.

<!--ssMenu CSS-->
<link rel="stylesheet" href="css/ss-menu.css">

<!--ssMenu JS--> <script src="js/jquery.ss.menu.js"></script>

3. Create HTML structure for ssMenu with the nav element that contains unordered list with your menu links.

<!--Start Side Sticky Menu-->
<nav class="ss-menu ">
<ul>
<li><a href="#1"><i class="fa fa-android"></i>  Apps Development</a></li>
<li><a href="#1"> <span class="ss-badge">6</span> <i class="fa fa-bar-chart"></i> Business & Marketing </a></li>
<li><a href="#1"><i class="fa fa-heartbeat"></i> Life Insurance</a></li>
<li><a href="#1"><i class="fa fa-bank"></i> Bank Loans</a></li>
<li><a href="#1"><i class="fa fa-cc-paypal"></i> Bank Marketing</a></li>
<li><a href="#1"><i class="fa fa-bookmark-o"></i> Insurance Policies </a></li>
<li><a href="#1"><i class="fa fa-car"></i> Vehicle Insurance </a></li>
<li><a href="#1"><i class="fa fa-briefcase"></i> Online Insurance</a></li>
<li><a href="#1"><i class="fa fa-location-arrow"></i> Nearest Bank</a></li>
</ul>
</nav>
<!--End Side Sticky Menu-->

4. Initialize ssMenu Plugin in jQuery document ready function.

$(document).ready(function(){

$(".ss-menu").ssMenu();

});

5. To change the theme, just put the name of theme in the following option.

$(document).ready(function(){

$(".ss-menu").ssMenu({ theme: "theme-name",

});

});

All available themes are as follows:

  1. red
  2. yellow
  3. blue
  4. green
  5. orange
  6. brown
  7. teal
  8. purple

6. To hide navigation on scroll down. default: false

$(".ss-menu").ssMenu({
  hideOnScroll: true,

});

7. To add additional CSS properties into ssMenu, put the CSS values in the following object.

$(".ss-menu").ssMenu({
additionalCSS: ({
'background' : '', //custom background color
'color' : '', //custom text color
'boxShadow' : '', //to add box shadow
'textShadow' : '', //to add text shadow
}),

});

Author

Asif Mughal
URL: www.codehim.com

jquery.ssmenu's People

Contributors

codehimblog avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.