ESPN Style Navigation
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 - 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'}); } });
});
Developer | Tom |
Username | TomJ1588 |
Uploaded | November 19, 2022 |
Rating | 3 |
Size | 2,593 Kb |
Views | 20,240 |
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 |
Editor Test | 5,749 Kb |
Luke ROTJ Lightsaber | 2,758 Kb |
Pure CSS Animated Modals | 2,830 Kb |
CSS Only Line Animated Modal | 2,502 Kb |
Swing In Social Links | 2,157 Kb |
Pure CSS Only Snackbar | 1,973 Kb |
Left Side Slide Out Push Nav | 3,009 Kb |
UI Test 2 | 2,968 Kb |
A Pen by Tom | 4,910 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 |
The Fantastic Mr Fox | MalZiiirA | 10,435 Kb |
Twitch API | Coderpilot | 3,412 Kb |
Modal Dialog | Gigaleet | 2,251 Kb |
Commuter Line Tokyu 8500 | Pedox | 7,031 Kb |
Airbnb Homepage | SindhujaD | 2,480 Kb |
Comparison of Roboto Draft vs Roboto | Jxnblk | 2,880 Kb |
Mobile Sub Menu Concept | Berdejitendra | 2,790 Kb |
Opening Reveal Modal On Document Ready | Winghouchan | 1,787 Kb |
A Pen by Markku Lehmonen | SharpDal | 7,804 Kb |
Testing Portfolio Page | Sideshowli | 3,395 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!