Simple fluid navigation with 4 hover effects
How do I make an simple fluid navigation with 4 hover effects?
What is a simple fluid navigation with 4 hover effects? How do you make a simple fluid navigation with 4 hover effects? This script and codes were developed by Nick Nikolov on 17 October 2022, Monday.
Simple fluid navigation with 4 hover effects - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Simple fluid navigation with 4 hover effects</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,
body { padding: 0; margin: 0; font-family: "Open Sans Condensed", Arial, sans-serif;
}
.navigation { margin: 0 0 20px 0; padding: 0; font-size: 1.2em; display: table; table-layout: fixed; width: 100%; border-bottom: 2px solid #19b9e8;
}
.navigation > li { margin: 0; padding: 0; display: table-cell; position: relative; z-index: 1;
}
.navigation > li > a { transition: all 0.2s ease-in-out; box-sizing: border-box; color: #19b9e8; display: block; padding: 10px; text-transform: uppercase; text-decoration: none; position: relative; z-index: 2; text-align: center;
}
.navigation > li.active a,
.navigation > li:hover a { color: #fff; text-shadow: rgba(0, 0, 0, 0.2) 0 1px 1px;
}
.navigation > li:after { content: ''; position: absolute; background: #19b9e8; opacity: 0; top: 100%; left: 0%; bottom: 0%; right: 0%; transition: all 0.2s ease-in-out;
}
.navigation > li:hover:after,
.navigation > li.active:after { opacity: 1; top: 0%; left: 0%; bottom: 0%; right: 0%;
}
.navigation.expand-center > li:after { top: 50%; left: 50%; bottom: 50%; right: 50%;
}
.navigation.expand-center > li:hover:after,
.navigation.expand-center > li.active:after { opacity: 1; top: 0%; left: 0%; bottom: 0%; right: 0%;
}
.navigation.expand-top > li:after { top: 0%; left: 0%; bottom: 100%; right: 0%;
}
.navigation.expand-top > li:hover:after,
.navigation.expand-top > li.active:after { opacity: 1; top: 0%; left: 0%; bottom: 0%; right: 0%;
}
.navigation.expand-left > li:after { top: 0%; left: 0%; bottom: 0%; right: 100%;
}
.navigation.expand-left > li:hover:after,
.navigation.expand-left > li.active:after { opacity: 1; top: 0%; left: 0%; bottom: 0%; right: 0%;
}
.navigation.expand-right > li:after { top: 0%; left: 100%; bottom: 0%; right: 0%;
}
.navigation.expand-right > li:hover:after,
.navigation.expand-right > li.active:after { opacity: 1; top: 0%; left: 0%; bottom: 0%; right: 0%;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700' rel='stylesheet' type='text/css'>
<ul class="navigation"> <li><a href="#home">Home</a></li> <li><a href="#home">Services</a></li> <li><a href="#home">Gallery</a></li> <li><a href="#home">Contact</a></li>
</ul>
<ul class="navigation expand-center"> <li><a href="#home">Home</a></li> <li><a href="#home">Services</a></li> <li><a href="#home">Gallery</a></li> <li><a href="#home">Contact</a></li>
</ul>
<ul class="navigation expand-top"> <li><a href="#home">Home</a></li> <li><a href="#home">Services</a></li> <li><a href="#home">Gallery</a></li> <li><a href="#home">Contact</a></li>
</ul>
<ul class="navigation expand-left"> <li><a href="#home">Home</a></li> <li><a href="#home">Services</a></li> <li><a href="#home">Gallery</a></li> <li><a href="#home">Contact</a></li>
</ul>
<ul class="navigation expand-right"> <li><a href="#home">Home</a></li> <li><a href="#home">Services</a></li> <li><a href="#home">Gallery</a></li> <li><a href="#home">Contact</a></li>
</ul>
</body>
</html>
Simple fluid navigation with 4 hover effects - Script Codes CSS Codes
html,
body { padding: 0; margin: 0; font-family: "Open Sans Condensed", Arial, sans-serif;
}
.navigation { margin: 0 0 20px 0; padding: 0; font-size: 1.2em; display: table; table-layout: fixed; width: 100%; border-bottom: 2px solid #19b9e8;
}
.navigation > li { margin: 0; padding: 0; display: table-cell; position: relative; z-index: 1;
}
.navigation > li > a { transition: all 0.2s ease-in-out; box-sizing: border-box; color: #19b9e8; display: block; padding: 10px; text-transform: uppercase; text-decoration: none; position: relative; z-index: 2; text-align: center;
}
.navigation > li.active a,
.navigation > li:hover a { color: #fff; text-shadow: rgba(0, 0, 0, 0.2) 0 1px 1px;
}
.navigation > li:after { content: ''; position: absolute; background: #19b9e8; opacity: 0; top: 100%; left: 0%; bottom: 0%; right: 0%; transition: all 0.2s ease-in-out;
}
.navigation > li:hover:after,
.navigation > li.active:after { opacity: 1; top: 0%; left: 0%; bottom: 0%; right: 0%;
}
.navigation.expand-center > li:after { top: 50%; left: 50%; bottom: 50%; right: 50%;
}
.navigation.expand-center > li:hover:after,
.navigation.expand-center > li.active:after { opacity: 1; top: 0%; left: 0%; bottom: 0%; right: 0%;
}
.navigation.expand-top > li:after { top: 0%; left: 0%; bottom: 100%; right: 0%;
}
.navigation.expand-top > li:hover:after,
.navigation.expand-top > li.active:after { opacity: 1; top: 0%; left: 0%; bottom: 0%; right: 0%;
}
.navigation.expand-left > li:after { top: 0%; left: 0%; bottom: 0%; right: 100%;
}
.navigation.expand-left > li:hover:after,
.navigation.expand-left > li.active:after { opacity: 1; top: 0%; left: 0%; bottom: 0%; right: 0%;
}
.navigation.expand-right > li:after { top: 0%; left: 100%; bottom: 0%; right: 0%;
}
.navigation.expand-right > li:hover:after,
.navigation.expand-right > li.active:after { opacity: 1; top: 0%; left: 0%; bottom: 0%; right: 0%;
}
Developer | Nick Nikolov |
Username | necks |
Uploaded | October 17, 2022 |
Rating | 4 |
Size | 3,336 Kb |
Views | 16,192 |
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 |
A Pen by Nick Nikolov | 1,732 Kb |
User Icons | 3,351 Kb |
Simple grid layout | 1,978 Kb |
Gallery image deck | 2,396 Kb |
Simple drawer menu | 5,625 Kb |
Ripple | 2,373 Kb |
CSS Animated Weather icons | 5,145 Kb |
Player Flip Cards | 4,314 Kb |
XSellco SVG animated logo | 4,358 Kb |
SVG Clock | 2,163 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 |
Factorial | KeithleySLHS | 1,158 Kb |
Fixed Scrolling Nav Bar | Philsinatra | 0 Kb |
Animating characters with jQuery | 042 | 2,776 Kb |
Buttons for autumn | Nikazawila | 1,795 Kb |
AngularJS Skills | Supro | 3,312 Kb |
Text Looping Transition | Agelber | 5,619 Kb |
No Vacancy 404 CSS Only | Sethkontny | 0 Kb |
Konami Code Easter Egg | Teolitto | 3,051 Kb |
The Monty Hall Problem | Melatonind | 4,360 Kb |
CSS Heart Loaders | Nourabusoud | 2,161 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!