Hover menu animation
How do I make an hover menu animation?
By DouglasDuteil. What is a hover menu animation? How do you make a hover menu animation? This script and codes were developed by Ghost Rider on 23 July 2022, Saturday.
Hover menu animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Hover menu animation</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!-- getbootstrap -->
<link href="http://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet" type="text/css" />
<!-- /getbootstrap -->
<div class="navbar-x"> <div class="container"> <ul class="nav nav-pills"> <li><a href="#">Home</a></li><li><a href="#">Next</a></li><li class="active"><a href="#">Activity</a></li><li><a href="#">Calendar</a></li><li><a href="#">Profile</a></li><li class="bottom-bar"></li> </ul> </div>
</div>
</body>
</html>
Hover menu animation - Script Codes CSS Codes
.navbar-x { text-align: center;
}
.navbar-x .nav { position: relative; overflow: hidden; display: inline-block;
}
.navbar-x .nav:hover.nav-pills > li.active > a, .navbar-x .nav:focus.nav-pills > li.active > a { color: #eee;
}
.navbar-x .nav:hover.nav-pills > li.active > a:hover, .navbar-x .nav:hover.nav-pills > li.active > a:focus, .navbar-x .nav:focus.nav-pills > li.active > a:hover, .navbar-x .nav:focus.nav-pills > li.active > a:focus { color: #000; background-color: inherit;
}
.navbar-x .nav > li > a { width: 100px; color: #eee; transition: color 0.42s ease-in-out;
}
.navbar-x .nav > li > a:hover, .navbar-x .nav > li > a:focus { color: #000; background-color: inherit;
}
.navbar-x .nav > li.active > a { color: #000; background-color: inherit;
}
.navbar-x .nav > li.bottom-bar { transition: left 0.42s ease-in-out; position: absolute; height: 3px; width: 100px; bottom: 0; background-color: #ebbf00;
}
.navbar-x .nav > li:nth-child(1).active ~ .bottom-bar { left: 0px;
}
.navbar-x .nav > li:nth-child(1):hover ~ .bottom-bar, .navbar-x .nav > li:nth-child(1):focus ~ .bottom-bar { left: 0px !important;
}
.navbar-x .nav > li:nth-child(2).active ~ .bottom-bar { left: 100px;
}
.navbar-x .nav > li:nth-child(2):hover ~ .bottom-bar, .navbar-x .nav > li:nth-child(2):focus ~ .bottom-bar { left: 100px !important;
}
.navbar-x .nav > li:nth-child(3).active ~ .bottom-bar { left: 200px;
}
.navbar-x .nav > li:nth-child(3):hover ~ .bottom-bar, .navbar-x .nav > li:nth-child(3):focus ~ .bottom-bar { left: 200px !important;
}
.navbar-x .nav > li:nth-child(4).active ~ .bottom-bar { left: 300px;
}
.navbar-x .nav > li:nth-child(4):hover ~ .bottom-bar, .navbar-x .nav > li:nth-child(4):focus ~ .bottom-bar { left: 300px !important;
}
.navbar-x .nav > li:nth-child(5).active ~ .bottom-bar { left: 400px;
}
.navbar-x .nav > li:nth-child(5):hover ~ .bottom-bar, .navbar-x .nav > li:nth-child(5):focus ~ .bottom-bar { left: 400px !important;
}
Developer | Ghost Rider |
Username | GhostRider |
Uploaded | July 23, 2022 |
Rating | 3 |
Size | 2,535 Kb |
Views | 78,936 |
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 |
Codepen search | 12,389 Kb |
Confetti en jQuery | 4,287 Kb |
Shaking css animation | 1,896 Kb |
Responsive Gallery | 2,489 Kb |
CSS Brainbow Menu | 2,964 Kb |
Laserz... | 1,848 Kb |
A Pen by Ghost Rider | 57,648 Kb |
Sudoko Solver | 29,760 Kb |
JQuery parallax | 2,230 Kb |
CSS Scroll Bars | 2,509 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 |
Search Box in Content Moves to Fixed Header | Chriscoyier | 2,768 Kb |
Testing Portfolio Page | Sideshowli | 3,395 Kb |
Twitch API | Coderpilot | 3,412 Kb |
Comment Jquery | SquishyAndroid | 2,421 Kb |
Commuter Line Tokyu 8500 | Pedox | 7,031 Kb |
Flexbox playground | Enxaneta | 5,418 Kb |
Custom checkbox example | Capelo | 3,495 Kb |
FCC Portfolio | Cmwebby | 4,304 Kb |
Animated Slide Hamburger Mobile Menu | BJack | 2,247 Kb |
Improved Page Flipping Effect | Usaphp | 5,201 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!