Animated Top Menu
How do I make an animated top menu?
What is a animated top menu? How do you make a animated top menu? This script and codes were developed by Trenton on 22 November 2022, Tuesday.
Animated Top Menu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Animated Top Menu</title> <link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <link href='https://fonts.googleapis.com/css?family=Poppins:400,700,300' rel='stylesheet' type='text/css'>
<div id="menu-wrapper"> <div class="container-fluid" id="container"> <div class="navigation"> <div> <div class="col-sm-3 menu-item menu-item-one"><a href="#">About</a></div> <div class="col-sm-3 menu-item menu-item-two"><a href="#">Events</a></div> <div class="col-sm-3 menu-item menu-item-three"><a href="#">Work</a></div> <div class="col-sm-3 menu-item menu-item-four"><a href="#">Contact</a></div> </div> </div> </div>
</div>
<a id="menu-toggle" class=""><span></span></a>
<h1>Welcome to My Fancy Menu Codepen</h1> <script src='http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Animated Top Menu - Script Codes CSS Codes
body{ background:#333;
}
.container-fluid{ padding:0px;
}
#menu-toggle { color: #000; height:30px; width:30px; cursor: pointer; z-index: 999998; position: fixed; font-size: 12px; font-size: 20px; left: 13px; top: 9px; margin-top: 30px;
}
.menu-item a{ color:#000; display:table; margin:auto; transition: all .5s ease-in-out;
}
.menu-item a:after { content: ''; display: block; height: 3px; width: 0; background: transparent; transition: width .5s ease,background-color .5s ease; margin-top: 12px; margin-bottom: -13px;
}
.menu-item a:hover{ text-decoration:none; opacity:0.35; transition: all .5s ease-in-out;
}
.menu-item a:hover:after { width: 100%; background: #000; margin-top: 12px; margin-bottom: -13px; opacity:0.35;
}
#menu-toggle span, #menu-toggle span:before, #menu-toggle span:after { cursor: pointer; border-radius: 1px; height: 2px; width: 25px; background: #fff; position: absolute; display: block; content: '';
}
#menu-toggle span:before { top: -6px;
}
#menu-toggle span:after { bottom: -6px;
}
#menu-toggle.active span:before { transform: rotate(45deg);
}
#menu-toggle.active span:after { transform: rotate(-45deg);
}
#menu-toggle span, #menu-toggle span:before, #menu-toggle span:after { transition: all 500ms ease-in-out;
}
#menu-toggle.active span:before, #menu-toggle.active span:after { top: 0;
}
#menu-toggle.active span { background-color: transparent;
}
#menu-wrapper{ background:#ff6860; height:0px; overflow:hidden; position:relative; z-index:1; -o-transition: all .33s ease; -moz-transition: all .33s ease; -webkit-transition: all .33s ease; transition: all .33s ease;
}
.navigation{ background:#ff6860; height:0px; overflow:hidden; position:relative; padding-top:100px; -webkit-transition: transform 900ms cubic-bezier(0.26,1.48,.47,.96); transition: transform 900ms cubic-bezier(0.26,1.48,.47,.96); -webkit-transform: translate3d(0px,-855px,0); transform: translate3d(0px,-855px,0); z-index:1;
}
#menu-wrapper.animate, .navigation.animate{ height:100vh;
}
#menu-wrapper.animate, .navigation.animate { -webkit-transform: translate3d(0px,0,0); transform: translate3d(0px,0 0);
}
/* .navigation .col-sm-3{ height:100vh;
} */
.menu-item{ color:#000; text-transform:uppercase; font-family: 'Poppins', sans-serif; font-weight:700; text-align:center; padding-top:0px; -o-transition: all .33s ease; -moz-transition: all .33s ease; -webkit-transition: all .33s ease; transition: all .33s ease; height:100vh;
}
.animate .menu-item{ padding-top:100px;
}
.menu-item{ -webkit-transform: translate3d(0px,0,0); transform: translate3d(0px,0 0);
}
.menu-item-one:nth-child() { -webkit-transition-delay: .1s; transition-delay: .1s;
}
.menu-item:nth-child(2) { -webkit-transition-delay: .2s; transition-delay: .2s;
}
.menu-item:nth-child(3) { -webkit-transition-delay: .3s; transition-delay: .3s;
}
.menu-item:nth-child(4) { -webkit-transition-delay: .4s !important; transition-delay: .4s !important;
}
h1{ font-family: 'Poppins', sans-serif; text-align:center; font-weight:900; color:#fff; font-size:60px; position: relative; margin-top:200px;
}
Animated Top Menu - Script Codes JS Codes
$('#menu-toggle').click(function() { $("#menu-wrapper, .navigation").toggleClass("animate"); $("#menu-toggle, .navigation").toggleClass("active");
});
Developer | Trenton |
Username | tlelkins2020 |
Uploaded | November 22, 2022 |
Rating | 3 |
Size | 2,779 Kb |
Views | 14,168 |
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 |
Auto Centered Sections | 1,862 Kb |
Changing Background Color on Scroll | 3,323 Kb |
Animated Top Menu | 2,779 Kb |
Sticky CTA Button | 2,813 Kb |
Parallax Background Scroll | 2,067 Kb |
Full Screen Material Menu | 3,906 Kb |
A Pen by Trenton | 4,102 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 Paul Sullivan | Pwsm50 | 2,349 Kb |
Isometric css island | Xaddict | 2,950 Kb |
Box-sizing | Elad2412 | 1,572 Kb |
Heatmap Color Scales | Stevepepple | 2,331 Kb |
E-mail Template | SoloMDFK | 4,871 Kb |
Minimal Menu | Achudars | 3,430 Kb |
A Pen by tugce | Ecgutcnkr | 4,197 Kb |
Mario | Takaneichinose | 3,902 Kb |
STAR WARS LIGHTSABER | Francoiscoron | 4,420 Kb |
A Pen by Final Boss tommyb9 | FBtommyb9 | 55,354 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!