Mobile push in nav
How do I make an mobile push in nav?
A mobile push in style page navigaton . What is a mobile push in nav? How do you make a mobile push in nav? This script and codes were developed by Anthony Young on 31 October 2022, Monday.
Mobile push in nav - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Mobile push in nav</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="subcontainer"> <div id="container"> <section> <button>Menu</button> <img src="http://farm8.staticflickr.com/7460/9314675438_235dcd0702_o.jpg" /> </section> </div>
</div>
<div id="mobile-nav-wrapper"> <div id="mobile-nav"> <div class="head"> <div class="close"></div> </div> <ul> <li>Item 1</li> <li>Item 2</li> </ul> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Mobile push in nav - Script Codes CSS Codes
img { width: 100%;
}
iframe { width: 100%; height: 100%;
}
button { background:#37acfa; border: none; margin: 5px auto; display: block;
}
#subcontainer {
}
#container { width: 100%; height: 100%;
}
#container section{ margin: 0px auto; background: #cfcbcf;
}
#mobile-nav-wrapper { position: relative; width: 300px; height: 100%; display: block; background: #ffffff;
}
#mobile-nav { width: 300px; z-index: 90000; border-right: 1px solid #ededed;
}
.head { position: fixed; z-index: 99999; background-repeat: no-repeat; background-position: 0px 0px; cursor: pointer; background-size: contain; width: 300px; height: 60px; display: none; top: 0; left: 0; background: #f5f5f5; -moz-box-shadow: inset -6px 0px 13px -9px #8D8D8D; -webkit-box-shadow: inset -6px 0px 13px -9px #8D8D8D; box-shadow: inset -6px 0px 13px -9px #8D8D8D;
}
.close { width: 16px; height: 16px; position: fixed; left: 260px; top: 20px; z-index: 99999; background-image: url('/lib/g/1.0/images/x.png'); background-repeat: no-repeat; background-position: 0px 0px; cursor: pointer; background-size: contain;
}
ul { left: -300px; padding: 0px; margin: 0px; bottom: 0; overflow: auto; position: fixed; top: 60px; display: block; width: 300px; -moz-box-shadow: inset -6px 0px 13px -9px #AAA; -webkit-box-shadow: inset -6px 0px 13px -9px #AAA; box-shadow: inset -6px 0px 13px -9px #AAA;
}
li { width: 100%; display: block; margin: 0; position: relative; overflow: visible; text-align: left; border-bottom: 1px solid #F1F1F1; color: #333; min-height: 30px; line-height: 45px;
}
Mobile push in nav - Script Codes JS Codes
$('button').click(function() { if ($('#mobile-nav-wrapper').hasClass('open')) { $('#mobile-nav-wrapper .close').fadeOut(); $('#mobile-nav-wrapper .close').addClass('hidden'); $('#mobile-nav-wrapper').removeClass('open'); $('#mobile-nav-wrapper').addClass('closed'); $('.head').fadeOut(); $('#mobile-nav ul').animate({ 'left': '-300px' }, 'slow'); $('#subcontainer').css('position','relative'); $('#subcontainer').animate({ 'left': '0px' }, 'slow'); } else { $('#mobile-nav-wrapper .close').hide().delay('600').fadeIn(); $('#mobile-nav-wrapper .close').removeClass('hidden'); $('#mobile-nav-wrapper').addClass('open'); $('#mobile-nav-wrapper').removeClass('closed'); $('.head').fadeIn(); $('#mobile-nav ul').animate({ 'left': '0px' }, 'slow'); $('#subcontainer').css('position','fixed'); $('#subcontainer').animate({ 'left': '300px', 'width': '100%' }, 'slow'); }//end of if
});
Developer | Anthony Young |
Username | ayoungh |
Uploaded | October 31, 2022 |
Rating | 3 |
Size | 2,605 Kb |
Views | 10,120 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
A Pen by Anthony Young | 1,658 Kb |
Exit Intention JS | 2,356 Kb |
SVG | 1,670 Kb |
JS Countdown Timer | 2,435 Kb |
Hover reveal images | 2,160 Kb |
Drop down sidebar | 2,616 Kb |
Field validation | 2,249 Kb |
Keypress check mobile | 1,492 Kb |
Scroll Progress Indicator With jQuery and SVG | 3,444 Kb |
Send email | 3,253 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
TinFoil Boats | Chandralil | 4,577 Kb |
Bootstrap 3 Price Table | Honglio | 2,655 Kb |
A Pen by Tosh | Panev | 2,586 Kb |
A Pen by Malith Hettiarachchi | MalZiiirA | 5,531 Kb |
Animated bar chart | CreativePunch | 3,124 Kb |
Responsive Pricing Table | Jeremycaris | 2,690 Kb |
Minimal Material Design Form Input | Koenigsegg1 | 3,076 Kb |
A Pen by Gregory Potdevin | GregoryPotdevin | 1,713 Kb |
CSS Flip Animation | Bbodine1 | 2,525 Kb |
Project MMetro beta | Atomicsong | 5,157 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!