ESPN Style Navigation

Developer
Size
2,593 Kb
Views
20,240

How do I make an espn style navigation?

Primary & Secondary navigation menu inspired by espn. What is a espn style navigation? How do you make a espn style navigation? This script and codes were developed by Tom on 19 November 2022, Saturday.

ESPN Style Navigation Previews

ESPN Style Navigation - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>ESPN Style Navigation</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <header id="head"> <div class="container"> <h1 id="logo"><span>Sports</span></h1> </div> <nav id="primary" class="nav"> <ul> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li class="selected"><a href="#">Link</a></li> <li><a href="#">Link</a></li> </ul> </nav> <nav id="secondary" class="nav"> <div class="container"> <ul> <li><a href="#">Link</a></li> <li class="selected"><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li><a href="#">Link</a></li> </ul> </div> </nav>
</header>
<div id="fill"></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>

ESPN Style Navigation - Script Codes CSS Codes

#fill { height:2000px;
}
* {	box-sizing:border-box;	padding:0;	margin:0;	-webkit-font-smoothing: subpixel-antialiased; transition:all .25s ease-in-out;
}
html {	min-height:100%;
}
body {	height:100%; background:#eee;	font-family: 'Open Sans', helvetica, arial, sans-serif;	font-size:16px;
}
#head { position:relative; width:100%; display:block; position:fixed; top:0;
}
#head .container { z-index:100;
}
.container { width:960px; margin:0 auto; position:relative;
}
#logo { color:#fff; background:#c62828; display:inline-block; width:auto; padding:10px 20px; border-left:10px solid #b71c1c; border-right:10px solid #b71c1c; transform:skewX(-20deg); float:left; height:58px;
}
#logo:after { content:""; width:100%; height:2px; background:#c62828; position:absolute; top:35%; left:0px;
}
#logo span { display:block; transform:skewX(20deg); text-transform:uppercase;
}
.nav { width:100%; padding:10px 0; position:relative; height:58px;
}
.nav:after, #primary ul:after { content: ""; display: table; clear:both;
}
#primary { background:#272727; color:#fff; top:0px;
}
#primary ul { display:block; width:100%; max-width:960px; margin:0 auto; padding-left:200px; position:relative;
}
.nav ul li { float:left; line-height:38px; text-align:center; list-style-type:none; height:48px; position:relative;
}
#primary ul li a { color:#fff; cursor:pointer; position:relative; padding:0 10px; text-decoration:none;
}
#primary ul li.selected:after { content:""; display:block; position:absolute; bottom:0px; left:calc(50% - 10px); width:0; height:0; border-style: solid; border-width: 0 10px 10px 10px; border-color: transparent transparent #ffffff transparent;
}
#secondary { background:#fff; box-shadow: 0 4px 2px -2px rgba(0, 0, 0, 0.3); z-index:90; top:0; padding-left:0;
}
#secondary ul li a { color:#272727; cursor:pointer; position:relative; padding:0 10px; text-decoration:none;
}
#secondary ul li.selected { border-bottom:3px solid #b71c1c;
}

ESPN Style Navigation - Script Codes JS Codes

$(document).ready(function() { $(window).scroll(function() { if($(window).scrollTop() >= 200) { $('#secondary').css({top:'-58px', paddingLeft:'400px'}); } else { $('#secondary').css({top:'0px', paddingLeft:'0px'}); } });
});
ESPN Style Navigation - Script Codes
ESPN Style Navigation - Script Codes
Home Page Home
Developer Tom
Username TomJ1588
Uploaded November 19, 2022
Rating 3
Size 2,593 Kb
Views 20,240
Do you need developer help for ESPN Style Navigation?

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!

Tom (TomJ1588) Script Codes
Create amazing SEO content 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!