Mobile push in nav

Developer
Size
2,605 Kb
Views
10,120

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 Previews

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
});
Mobile push in nav - Script Codes
Mobile push in nav - Script Codes
Home Page Home
Developer Anthony Young
Username ayoungh
Uploaded October 31, 2022
Rating 3
Size 2,605 Kb
Views 10,120
Do you need developer help for Mobile push in nav?

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!

Anthony Young (ayoungh) Script Codes
Create amazing art & images with AI!

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!