Simple push menu using Jquery | Sanwebcorner

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

Labels

360 degree view product image 3d rotate 3d text 3step-form Accordion menu ajax All Browsers Animated Background Gradient animation audio controller auto complete Best accordion menu bootstrap border bounce effect on hover Breadcrumb calculate age by dob calendar Captcha change image on mouse move color chooser countdown Counter on scroll Css css animation css buttons css hover css3 customized upload Button Date picker delete data from table Different scroll speed email otp verification email verifier Embed eventlist Expanding Menu feedbck form flash news section close button full screen menu Google custom search Google Maps Google reCAPTCHA Google site search gradient hide menu Horizontal News ticker Hover Htm Html html dropdown html form html5 html5 form validation Iframe image hover increment decrement textbox value based on select box Javascript Jquery js Layered image effect on mouse hover lock & unlock page scroll marquee marquee with close button mobile number validation mobile otp login Multi-level-drop-down-menu multi-level-form Multi-Step-form mysql News ticker on hover change text to image our team page password strength checker Photoshop PHP populate html selectbox Popup image on click the link pure css Question type form Random password Redirect page Based on the select box while submit the form responsive responsive menu responsive popup box Responsive Vertical Time line design rotate image selectbox based on select box simple coming soon page simple countdown based on end date simple typing effect slider sliding tab sms otp login statistic counter on scroll switch tag shape team member Time picker toggle toggle view transparent button underline animation up down slide validation vertical fixed sidebar Webtips Youtube