Simple push menu using Jquery

Push menus are basically used one for website to display the menus in different manner. This will done by using simple Jquery and css code. Here i will show you how to create left-to-right side push menu  and right-to-left-push menu using simple jquery and css3 codes. This types of menu is commonly used for websites and also this types of menus will not occupy  any spaces in the webpages until it clicked.

Left to Right Side Push menu using Jquery:

This push menu is coming from the left to right side when you click the particular button and shows the left side menu when you click again it hides to left side. It also called by the name of left slide menu. This is like a toggle menu you can use it to your website. Instead of this type of button you can also use the mobile menu and call the particular class.




Right to Left Side Push menu using Jquery:

This is another way to display the push menu from right side to left side. This will hidden menu by default, When you click the button it shows the menu from right to left and when click the button again it hide to right side.It also called by the name of right slide menu.


This types of  push menus are commonly used for the web pages. The Below example have the full code and demo pages for your reference. You  can check it out the demo pages. I hope this post is really helpful.

Html Code for Push Menu:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0"> 
<title>Left and Right push menu</title>
<meta name="description" content="left push menu, right push menu, rightside slide menu, left side slide menu, jPushMenu, Slide and Push Menus, left and right push menu" />
<meta name="keywords" content="sliding menu, pushing menu, navigation, responsive, menu, css, jquery, mobile menu" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<link rel="stylesheet" type="text/css" href="css/jPushMenu.css" />
</head>
<body>
<div style="height:150px;"> &nbsp;</div>
<nav class="cbp-spmenu cbp-spmenu-vertical cbp-spmenu-left">
<h3>Menu</h3>
<a href="#">Home</a>
<a href="#">About us</a>
<a href="#">Vision & Mission</a>
<a href="#">Services</a>
<a href="#">About our Product</a>
<a href="#">Contact us</a>
</nav>
<nav class="cbp-spmenu cbp-spmenu-vertical cbp-spmenu-right">
<h3>Menu</h3>
<a href="#">Home</a>
<a href="#">About us</a>
<a href="#">Vision & Mission</a>
<a href="#">Services</a>
<a href="#">About our Product</a>
<a href="#">Contact us</a>
</nav>
<div class="container">
<div class="main">
<section>
<button class="toggle-menu menu-left push-body">Toggle Left Menu Push</button>
<button class="toggle-menu menu-right push-body">Toggle Right Menu Push</button>
</section>
<h1><a href="http://www.sanwebcorner.com">www.sanwebcorner.com</a></h1>
</div>
</div>
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/jPushMenu.js"></script>
<script>
jQuery(document).ready(function($) {
$('.toggle-menu').jPushMenu();
});
</script>
</body>
</html>





Post a Comment

0 Comments