TweenLite Animate height:auto
How do I make an tweenlite animate height:auto?
What is a tweenlite animate height:auto? How do you make a tweenlite animate height:auto? This script and codes were developed by Nicolaj Lund Nielsen on 13 September 2022, Tuesday.
TweenLite Animate height:auto - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>TweenLite Animate height:auto</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="menu-btn" class="mobile-only"> <button type="button"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
</div>
<div id="navigation"> <nav class="main-menu" role="navigation"> <ul> <li class="inpath"> <a href="#">Private Equity</a> <ul> <li class="inpath"> <a href="#">Hovedmenu 1-1</a> <ul> <li> <a href="#">Hovedmenu 1-1-1</a> </li> <li class="active"> <a href="#">Hovedmenu 1-1-2</a> </li> <li> <a href="#">Hovedmenu 1-1-3</a> </li> <li> <a href="#">Hovedmenu 1-1-4</a> </li> </ul> </li> <li><a href="#">Hovedmenu 1-2</a></li> <li><a href="#">Hovedmenu 1-3</a></li> <li><a href="#">Hovedmenu 1-4</a></li> </ul> </li> <li> <a href="#">Asset Management</a> </li> <li> <a href="#">Om Maj Invest</a> </li> <li> <a href="#">Investerings-foreningen</a> </li> </ul> </nav>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
TweenLite Animate height:auto - Script Codes CSS Codes
body { background-color:#000;
}
#navigation { overflow: hidden; -webkit-overflow-scrolling: touch; width:320px; height:1px; padding:0 25px; background-color:#fff;
}
#navigation.open { height:auto;
}
#menu-btn { height:58px; width:100%;
}
#menu-btn button { position: relative; float: left; padding: 13px 15px; background-color:#bada11; border:0;
}
#menu-btn .icon-bar { display: block; width: 24px; height: 2px; margin:5px 0 3px; border-radius: 2px; background-color: #FFF;
}
nav ul,
nav li { margin:0; list-style: none;
}
nav ul:first-child { padding:0;
}
nav li { display:block;
}
nav a, nav a:visited, nav:active { color:#000;
}
nav a:hover, nav a:focus { color:#bada11; text-decoration:none;
}
nav a { display:block; position:relative; text-decoration:none; padding-top: 20px; padding-bottom: 3px; line-height: 17px; border-bottom:1px solid #c7cccb;
}
nav .active a { border-color:#000; font-weight:bold; }
.main-menu { padding-bottom:25px; font-size:13px; text-transform:uppercase;
}
TweenLite Animate height:auto - Script Codes JS Codes
var btn = document.getElementById("menu-btn");
var navigation = document.getElementById("navigation");
btn.onclick = function (e) {
//navigation.className = navigation.className == "open" ? "" : "open";
if (navigation.className != "open") { TweenLite.to(navigation, .6, { className:"open", ease: Quad.easeOut });
}
else { TweenLite.to(navigation, .6, { className: "", ease: Quint.easeOut }); }
}
Developer | Nicolaj Lund Nielsen |
Username | nicolund |
Uploaded | September 13, 2022 |
Rating | 3 |
Size | 2,495 Kb |
Views | 36,432 |
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 |
TweenMax transformOrigin Bubble | 2,209 Kb |
Tweenmax Integer Tween | 1,884 Kb |
TimelineMax Circular loader | 2,649 Kb |
TweenMax staggerTo worm | 2,074 Kb |
FrameByFrame CSS animation | 1,713 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 |
Twitch TV | Natester13 | 4,488 Kb |
APortfolio | Skybutterfly | 5,174 Kb |
Resize image | Happyhj | 1,892 Kb |
AngularJS Datalist Directive | M-e-conroy | 2,366 Kb |
Starfield using KineticJS | Asp | 3,512 Kb |
Animating characters with jQuery | 042 | 2,776 Kb |
Z-index demo | Kblh | 1,534 Kb |
Click handler test | Snapson | 2,329 Kb |
Airbnb Homepage | SindhujaD | 2,480 Kb |
Responsive Section hover effect to show content | Berdejitendra | 2,540 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!