Hiding nav

Developer
Size
3,207 Kb
Views
12,144

How do I make an hiding nav?

What is a hiding nav? How do you make a hiding nav? This script and codes were developed by Kescoe on 22 October 2022, Saturday.

Hiding nav Previews

Hiding nav - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>hiding nav</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ html{ background: -webkit-gradient(linear, 0 0, 0 100%, from(#671e15), color-stop(0.2, #7F462C), color-stop(0.4, #C06000), color-stop(0.6, #E07000), color-stop(0.8, #FF9020), to(#FFFF00)); background: -webkit-linear-gradient(#671e15, #A43224, #C06000, #E07000, #FF9020, #FFFF00); background: -moz-linear-gradient(#671e15, #A43224, #C06000, #E07000, #FF9020, #FFFF00); background: -o-linear-gradient(#671e15, #A43224, #C06000, #E07000, #FF9020, #FFFF00); background: linear-gradient(#671e15, #A43224, #C06000, #E07000, #FF9020, #FFFF00);
min-height: 100%;
}
li{	height: 50px;	width: 50px;	list-style: none;	margin-bottom: 5px; border-radius:10px;
}
span{	height: 50px;	width: 0px;	background-color: rgba(255, 255, 255, 0.49); background-opacity:0.4;	/* distance from li */	margin-left:50px;	position: absolute;	text-align: center;	overflow: hidden;	/* text decoration */	line-height: 50px;	font-size: 18px;	font-weight: bold;	font-family: 'Myriad Pro', Arial;
}
#menuHead{ background-image: url(http://www.veryicon.com/icon/png/System/Sticker%20System/Home.png); background-size:100%;
}
#fb{ background-image: url(http://www.cristianmonroy.com/wp-content/uploads/2013/04/facebook_logo_new_600.png); background-size:100%;
}
#pin{ background-image: url(http://icons.iconarchive.com/icons/danleech/simple/512/pinterest-icon.png); background-size:100%;
}
#twit{ background-image: url(http://netrightdaily.com/wp-content/uploads/2012/04/Twitter.png); background-size:100%;
}
#goo{ background-image: url(http://philnews.ph/wp-content/uploads/2011/10/Google+-logo.jpg); background-size:100%;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <!DOCTYPE html>
<html>	<head>	<script src="https://code.jquery.com/ui/1.10.3/jquery-ui.js" type="text/javascript"></script> <script src="https://code.jquery.com/jquery-1.9.1.js"></script>	</head> <body>	<nav>	<ul>	<li id = "menuHead"></li>	<div id="menuBody">	<li id = "fb">	<span>FACBOOK</span>	</li>	<li id = "pin">	<span>PINTEREST</span>	</li>	<li id= "twit">	<span>TWITTER</span>	</li>	<li id = "goo">	<span>GOOGLE</span>	</li>	</div>	</ul>	</nav>	</body>
</html> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Hiding nav - Script Codes CSS Codes

html{ background: -webkit-gradient(linear, 0 0, 0 100%, from(#671e15), color-stop(0.2, #7F462C), color-stop(0.4, #C06000), color-stop(0.6, #E07000), color-stop(0.8, #FF9020), to(#FFFF00)); background: -webkit-linear-gradient(#671e15, #A43224, #C06000, #E07000, #FF9020, #FFFF00); background: -moz-linear-gradient(#671e15, #A43224, #C06000, #E07000, #FF9020, #FFFF00); background: -o-linear-gradient(#671e15, #A43224, #C06000, #E07000, #FF9020, #FFFF00); background: linear-gradient(#671e15, #A43224, #C06000, #E07000, #FF9020, #FFFF00);
min-height: 100%;
}
li{	height: 50px;	width: 50px;	list-style: none;	margin-bottom: 5px; border-radius:10px;
}
span{	height: 50px;	width: 0px;	background-color: rgba(255, 255, 255, 0.49); background-opacity:0.4;	/* distance from li */	margin-left:50px;	position: absolute;	text-align: center;	overflow: hidden;	/* text decoration */	line-height: 50px;	font-size: 18px;	font-weight: bold;	font-family: 'Myriad Pro', Arial;
}
#menuHead{ background-image: url(http://www.veryicon.com/icon/png/System/Sticker%20System/Home.png); background-size:100%;
}
#fb{ background-image: url(http://www.cristianmonroy.com/wp-content/uploads/2013/04/facebook_logo_new_600.png); background-size:100%;
}
#pin{ background-image: url(http://icons.iconarchive.com/icons/danleech/simple/512/pinterest-icon.png); background-size:100%;
}
#twit{ background-image: url(http://netrightdaily.com/wp-content/uploads/2012/04/Twitter.png); background-size:100%;
}
#goo{ background-image: url(http://philnews.ph/wp-content/uploads/2011/10/Google+-logo.jpg); background-size:100%;
}

Hiding nav - Script Codes JS Codes

 // hide menu // $('#menuBody').hide(); //show menu based on hover // $('nav').mouseenter(function(){ $('#menuBody').slideDown(500); }); $("nav").mouseleave(function(){ $('#menuBody').slideUp(); }); // show menu contents based on hover // $("li").mouseenter(function(){ $(this).find(":first-child").animate({width: '110'}, 200); }); $("li").mouseleave(function(){ $(this).find(":first-child").animate({width:'0'}); });
Hiding nav - Script Codes
Hiding nav - Script Codes
Home Page Home
Developer Kescoe
Username kescoe
Uploaded October 22, 2022
Rating 3
Size 3,207 Kb
Views 12,144
Do you need developer help for Hiding 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!

Kescoe (kescoe) Script Codes
Create amazing marketing copy 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!