For animated drop down menu
How do I make an for animated drop down menu?
Using max-height and transition to make drop down menu animated. What is a for animated drop down menu? How do you make a for animated drop down menu? This script and codes were developed by Tingyu on 13 September 2022, Tuesday.
For animated drop down menu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>For animated drop down menu</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="navigation">
<ul class="main"> <li><a href="#">Home</a></li> <li><a href="#">GAMING</a> <div class="sub"> <ul> <li><a href="#">Sub link</a></li> <li><a href="#">Sub link</a></li> <li><a href="#">Sub link</a></li> <li><a href="#">Sub link</a></li> </ul> </div> </li> <li><a href="#">LIQUOR</a> <ul class="sub"> <li><a href="#">Sub link</a></li> <li><a href="#">Sub link</a></li> <li><a href="#">Sub link</a></li> <li><a href="#">Sub link</a></li> </ul> </li> <li><a href="#">CASINO</a> <ul class="sub"> <li><a href="#">Sub link</a></li> <li><a href="#">Sub link</a></li> <li><a href="#">Sub link</a></li> <li><a href="#">Sub link</a></li> </ul> </li> <li><a href="#">CONTACT US</a></li>
</ul>
</div>
</body>
</html>
For animated drop down menu - Script Codes CSS Codes
.navigation{ width:700px; margin:0 auto;
}
a{ text-decoration:none; color:red; padding:5px;
}
ul{ list-style:none;
}
.main{ height:0px;
}
.main li{ float:left; border:1px solid #000; margin: 0 10px;
}
.main li a{ display:block;
}
.main .sub{ position:absolute; overflow:hidden; margin-left:-48px; max-height:0px; transition:max-height 0.4s ease;
}
.main .sub li{ float:none;
}
.main .sub li a{ display:block; background:#1c3947; color:#fff;
}
.main .sub{
}
.main li a:hover{ background:#fff; color:#000;
}
.main li:hover > .sub{ max-height:200px; transition:max-height 1s ease 0.3s;
}
Developer | Tingyu |
Username | TingChe |
Uploaded | September 13, 2022 |
Rating | 3 |
Size | 1,828 Kb |
Views | 34,408 |
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 |
Implement Flip effect with css3 | 1,800 Kb |
A Pen by Tingyu | 2,475 Kb |
Play with Raphael.js | 2,612 Kb |
Play around velocity js | 1,587 Kb |
Chart with Chart.js | 2,008 Kb |
Using MixItUp plugin | 3,372 Kb |
Animation - moving from bottom | 1,856 Kb |
Responsive mansory layout | 1,180 Kb |
Mixitup and jPages | 2,840 Kb |
Translate Overlay hover effect | 1,596 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 |
Funny menu | AxeLVaisper | 4,671 Kb |
SVG Transform vs CSS Transform | AmeliaBR | 4,175 Kb |
Wave Lines | Mikehobizal | 4,023 Kb |
Formations | Cantelope | 5,731 Kb |
Portfolio Page | HuffmanJ25 | 5,240 Kb |
Fading gradient button | Insprd | 1,713 Kb |
Contact | GanNichiHa | 2,514 Kb |
Form Labels | Bartuc | 2,717 Kb |
Clock with full screen background | Owebboy | 2,415 Kb |
CMP5-Opdracht15 | SannevanGastel | 2,733 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!