Nav for Mobile
How do I make an nav for mobile?
What is a nav for mobile? How do you make a nav for mobile? This script and codes were developed by Hemant Aggarwal on 09 January 2023, Monday.
Nav for Mobile - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Nav for Mobile</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <a id="button">NAV</a>
<br>
<nav id="nav"> <ul> <li><a href="#">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a></li> <li><a href="#">5</a></li> </ul>
</nav> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Nav for Mobile - Script Codes CSS Codes
#nav ul { list-style-type:none; content=""; display:table; padding:0 6px;}
#nav ul li { margin:0; padding:0;}
#nav ul li a { text-decoration:none; color:#fff;}
#button { float:right; cursor:pointer;}
.hide2 { display:none; }
#nav { position:absolute; right:0; transition:all 1s; background:#000; content=""; display:none; }
Nav for Mobile - Script Codes JS Codes
$('#nav').css({'display':'block'});
height=$('#nav').height();
$('#nav').css({'height':'0'});
$('#button').click(function(){ if($('#nav').css('height')=='0px'){ $('#nav').animate({height: height}, 100); } else { $('#nav').css({'height':'0px'}); }
});
//alert("hi");
Developer | Hemant Aggarwal |
Username | mstoic |
Uploaded | January 09, 2023 |
Rating | 3 |
Size | 1,896 Kb |
Views | 6,072 |
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 |
Multiple jQuery Sliders | 1,960 Kb |
Amazing White Border Below Link | 1,867 Kb |
BreadCrumb Design | 1,913 Kb |
Divider Shadow | 1,500 Kb |
Social Share Count With JS | 2,515 Kb |
Navigation Mobile From Right Slide | 1,832 Kb |
Adsense Code Converter - Mstoic.com | 2,017 Kb |
NAV WPMANAGER | 1,991 Kb |
Material Visiting Card Back | 4,053 Kb |
DEL - SIP Calculator | 1,569 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 |
Impress JS Algorhytmic Generator | Jeffscottward | 7,906 Kb |
NgEasyModal | Lorenzodianni | 4,159 Kb |
Banner Ad | Raquellorenzana | 4,172 Kb |
A Pen by Kevin | Kevinkenger | 2,642 Kb |
Simple blog concept | Drew_mc | 2,666 Kb |
HTML5 Video Autoplay | Zivcos | 1,352 Kb |
Mobile Nav Menu | AliKlein | 4,745 Kb |
Kut D3 | Jellevrswk | 3,687 Kb |
Beveled corners using CSS border attribute | DawsonMediaD | 2,136 Kb |
React Vote Component | Souporserious | 5,465 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!