Sliding Navigation Menu
How do I make an sliding navigation menu?
What is a sliding navigation menu? How do you make a sliding navigation menu? This script and codes were developed by Keith Pickering on 10 August 2022, Wednesday.
Sliding Navigation Menu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Sliding Navigation Menu</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <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! */ .wrapper { height: 100vh; display: flex; align-items: center; justify-content: center; background-color: #ECEFF1;
}
.nav { display: flex; margin: 0 auto; padding: 0; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.06);
}
.nav__item { position: relative; overflow: hidden; list-style: none; flex: 1; text-align: center;
}
.nav__item > a { display: block; text-decoration: none; text-transform: uppercase; font-family: 'Open Sans', sans-serif; font-weight: 200; font-size: 24px; padding: 20px 40px; color: #78909C; background-color: white; transition: all 200ms;
}
.nav__item > a:after { content: ''; display: block; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background-color: #F48FB1; animation: slide-out 200ms; animation-fill-mode: forwards; animation-timing-function: ease-in-out;
}
.nav__item > a:hover { color: #546E7A; background-color: #fbfbfc;
}
.nav__item > a:hover:after { animation: slide-in 200ms;
}
@keyframes slide-in { 0% { transform: translate(-100%, 0); opacity: 0.25; } 100% { transform: none; opacity: 1; }
}
@keyframes slide-out { 0% { transform: none; opacity: 1; } 100% { transform: translate(100%, 0); opacity: 0.25; }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet' type='text/css'>
<div class="wrapper">
<ul class="nav"> <li class="nav__item"> <a href="#">Home</a> </li> <li class="nav__item"> <a href="#">Blog</a> </li> <li class="nav__item"> <a href="#">About</a> </li>
</ul>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Sliding Navigation Menu - Script Codes CSS Codes
.wrapper { height: 100vh; display: flex; align-items: center; justify-content: center; background-color: #ECEFF1;
}
.nav { display: flex; margin: 0 auto; padding: 0; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.06);
}
.nav__item { position: relative; overflow: hidden; list-style: none; flex: 1; text-align: center;
}
.nav__item > a { display: block; text-decoration: none; text-transform: uppercase; font-family: 'Open Sans', sans-serif; font-weight: 200; font-size: 24px; padding: 20px 40px; color: #78909C; background-color: white; transition: all 200ms;
}
.nav__item > a:after { content: ''; display: block; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background-color: #F48FB1; animation: slide-out 200ms; animation-fill-mode: forwards; animation-timing-function: ease-in-out;
}
.nav__item > a:hover { color: #546E7A; background-color: #fbfbfc;
}
.nav__item > a:hover:after { animation: slide-in 200ms;
}
@keyframes slide-in { 0% { transform: translate(-100%, 0); opacity: 0.25; } 100% { transform: none; opacity: 1; }
}
@keyframes slide-out { 0% { transform: none; opacity: 1; } 100% { transform: translate(100%, 0); opacity: 0.25; }
}
Developer | Keith Pickering |
Username | keithpickering |
Uploaded | August 10, 2022 |
Rating | 3 |
Size | 3,440 Kb |
Views | 38,456 |
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 |
Material Inspired Menu | 4,237 Kb |
Metro Interactive Live Tiles | 5,953 Kb |
Image with inset shadow | 2,311 Kb |
Smooth, Semantic Tab Box | 4,256 Kb |
Notifications | 5,681 Kb |
A Pen by Keith Pickering | 12,023 Kb |
Single-element Toggle Switch | 3,875 Kb |
Delicious SASS Buttons | 8,496 Kb |
Windows 10 Concept | 16,180 Kb |
Easy Container-Breaking Sidebar | 4,673 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 |
A Pen by aleen42 | Aleen42 | 11,473 Kb |
Canvas stripes | Adrianparr | 1,948 Kb |
Spilled Paint | Darrylhuffman | 3,894 Kb |
Elon Musk - Tribute Page - FreeCodeCamp | Yunnimun | 8,615 Kb |
Side Sliding Menu CSS | EduardL | 4,388 Kb |
Tile Animation Thing | Frxnz | 4,332 Kb |
Ball bouncing loading animation | Adam2326 | 3,144 Kb |
Infractions - Attitude | Kylie_Joseph | 7,672 Kb |
About Mazano | Kiti | 2,585 Kb |
Starting out with Ember.JS | Cfleschhut | 4,808 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!