Responsive Sidebar With jQuery and Hammer.js | Fxp Sidebar

Fxp Jquery Sidebar is a simple plugin from jQuery to create responsive, animated, easy-to-touch, multi-level navigation (hamburger navigation, off-the-canvas menu, and sidebar) on the modern web app.

Hammer.js library is required to provide tactile support in navigating the drawer. Compatible with the latest Bootstrap framework. Easy to implement on your existing project without writing any JavaScript or CSS.

Smooth Collapsible Sidebar Navigation Code with HTML CSS

How to make use of it:

1. Load the core stylesheet sidebar.css within the head part.

<link href="./dist/sidebar.css" rel="stylesheet">

2. Load the sidebar-bootstrap.css if you would like to make use of the plugin within Bootstrap.

<link href="./dist/sidebar-bootstrap.css" rel="stylesheet">

3. Load the Font Awesome Iconic Font for the hamburger toggle button.

<link rel="stylesheet" href="/path/to/fontawesome/css/all.css">

4. Load the necessary jQuery, hammer.js, and sidebar.js files on the finish of the HTML doc.

<script src="/path/to/cdn/jquery.min.js"></script>
<script src="/path/to/cdn/hammer.min.js"></script>
<script src="./dist/sidebar.js" async="async"></script>

5. The primary HTML structure to create drawer navigation.

<div class="fxp-sidebar fxp-sidebar-default" data-sidebar="true" data-toggle-id="sidebar-toggle-left">
  <ul class="fxp-sidebar-menu">
    <li class="fxp-sidebar-group"><span>Header 1</span>
      <ul class="fxp-sidebar-group-menu">
        <li class="fxp-sidebar-item"><a href="#">Item 1</a></li>
        <li class="fxp-sidebar-item"><a href="#" class="active">Item 2</a></li>
        <li class="fxp-sidebar-item"><a href="#">Item 3</a></li>
      </ul>
    </li>
    <li class="fxp-sidebar-group"><span>Header 2</span>
        <ul class="fxp-sidebar-group-menu">
            <li class="fxp-sidebar-item"><a href="#">Item 4</a></li>
            <li class="fxp-sidebar-item"><a href="#">Item 5</a></li>
            <li class="fxp-sidebar-item"><a href="#">Item 6</a></li>
        </ul>
    </li>
    <li class="fxp-sidebar-item"><a href="#">Item 7</a></li>
    <li class="fxp-sidebar-item"><a href="#">Item 8</a></li>
    <li class="fxp-sidebar-item"><a href="#">Item 9</a></li>
    <li class="fxp-sidebar-item"><a href="#">Item 10</a></li>
  </ul>
</div>

6. Create a toggle button to open/close the drawer navigation.

<script src="/path/to/cdn/jquery.min.js"></script>
<script src="/path/to/cdn/hammer.min.js"></script>
<script src="./dist/sidebar.js" async="async"></script>

Touch-friendly Drawer Navigation Plugin, Fxp Jquery Sidebar Github


See Demo And Download

Official Website(fxpio): Click Here

This superior jQuery/javascript plugin is developed by fxpio. For extra Advanced Usages, please go to the official website.

Related Posts

drag-drop-file-5x5-jq-uploader

Responsive Drag and Drop File Uploader/Download Plugin | 5x5_jq_uploader

5x5_jq_uploader plugin can be used to instantly create a drop file area and file queue with a little bit of preparation. Bootstrap is used for responsive planning…

Bootstrap-Dark-Mode

Stylesheet For Implementing Dark Mode with Bootstrap

Bootstrap Dark Mode provides a style sheet and two texts that allow you to implement Dark Mode on your website. Initially loaded based on user preferences, can…

responsive-navigation-menu

Multi-purpose Navigation Menu for Javascript Library | jQuery Corenav

coreNavigation is a multipurpose navigation menu for a jquery based javascript library, comes with more style, and is easy to integrate. 11 Default Menu 2 Responsive Navigation…

Simple-Multi-Select-Dropdown-Pure-Vanilla-Javascript

Simple Multi-Select Dropdown Pure Vanilla Javascript | multiSelect.js

MultiSelect.js is a simple, clean, and progressive JavaScript library designed for easy integration with any type of project or system. The design was heavily influenced by the…

Confetti-Falling-Animation-Effect-party

Confetti Falling Animation Effect In JavaScript | party.js

Party.js is a JavaScript library to brighten user site experience with visual effects! Celebrate success with dom confetti! The library is written in TypeScript and compiled into…

how-to-create-popup-in-html-with-css

How To Create A Popup in HTML with CSS

How to create popup in html with css – Popup without JavaScript is an elegant pop-up panel component with an animated scale, written in CSS. Have you…