TweenLite Animate height:auto

Size
2,495 Kb
Views
36,432

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 Previews

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 }); }
}
TweenLite Animate height:auto - Script Codes
TweenLite Animate height:auto - Script Codes
Home Page Home
Developer Nicolaj Lund Nielsen
Username nicolund
Uploaded September 13, 2022
Rating 3
Size 2,495 Kb
Views 36,432
Do you need developer help for TweenLite Animate height:auto?

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!

Nicolaj Lund Nielsen (nicolund) Script Codes
Create amazing blog posts with AI!

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!