Menu with hover slide effect
How do I make an menu with hover slide effect?
Pure css center slideUp/Down two color menu. What is a menu with hover slide effect? How do you make a menu with hover slide effect? This script and codes were developed by Szymon Dziewoński on 23 December 2022, Friday.
Menu with hover slide effect - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Menu with hover slide effect </title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <nav> <ul> <li> <a href="/" class="active"> <span class="black">Home</span> <span class="white">Home</span> </a> </li> <li> <a href="/about"> <span class="black">About</span> <span class="white">About</span> </a> </li> <li> <a href="/portfolio"> <span class="black">Contact</span> <span class="white">Contact</span> </a> </li> </ul>
</nav>
<h1>content goes here</h1>
<link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
</body>
</html>
Menu with hover slide effect - Script Codes CSS Codes
*{ margin: 0; padding: 0;
}
body{ text-align: center; font-family: 'Lato', sans-serif;
}
h1{ line-height: 60px; color: #344595; font-size: 16px;
}
nav{ float:left; width:100%; overflow:hidden; position:relative; background-color: #344595; letter-spacing: 1px;
}
nav ul { list-style:none; margin:0; padding:0; position: relative; height: 70px; text-align: center;
}
nav ul li{ display: inline-block; list-style:none; margin:0; padding:0; position:relative;
}
nav ul li a{ color: #fff; text-transform: uppercase; font-size: 13px; font-weight: 400; line-height: 70px; height: 70px; display: block; text-decoration: none; overflow: hidden;
}
nav ul li a span{ display: block; padding: 0 10px; -webkit-transition: all 0.3s ease-in-out; -moz-transition: all 0.3s ease-in-out; -o-transition: all 0.3s ease-in-out; -ms-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
}
nav ul li a span.white{ color: #fff;
}
nav ul li a span.black{ background-color: #fff; color: #000; margin: -70px 0 0 0;
}
nav ul li a:hover span.white, nav ul li a.active span.white{ margin: 70px 0 0 0;
}
nav ul li a:hover span.black, nav ul li a.active span.black{ margin: 0px 0 0 0;
}
Developer | Szymon Dziewoński |
Username | SzymonDziewonski |
Uploaded | December 23, 2022 |
Rating | 3 |
Size | 2,026 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 |
Simple loader | 1,919 Kb |
Hover effect | 2,448 Kb |
Hover button | 2,147 Kb |
Vertical-align | 1,646 Kb |
Social Icons net animation | 2,689 Kb |
Svg animation draw | 5,545 Kb |
Earth animation | 1,991 Kb |
Random count | 1,930 Kb |
Animated logo | 1,994 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 |
Animated Vertical CSS3 Menu Black | MaCeLMp4 | 2,750 Kb |
Sticky Navbar | Phantomesse | 5,106 Kb |
Bubble animation | Ftabor | 6,565 Kb |
See Through | Larrygeams | 77,410 Kb |
Plotting Points with D3.js | Laurakelly | 31,996 Kb |
Loading animation | Hafizfattah | 0 Kb |
Heatmap Color Scales | Stevepepple | 2,331 Kb |
Modal Dialog | Gigaleet | 2,251 Kb |
Lazy Load for Background Images | The_ruther4d | 2,977 Kb |
Flat UI Button | Honchoman | 2,289 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!