Drop up mobile menu animation

Developer
Size
3,516 Kb
Views
16,192

How do I make an drop up mobile menu animation?

Decided to put this concept in live: http://dribbble.com/shots/1253976-iOS-Menu-ConceptThen after finishing it, I saw somebody already did it:. What is a drop up mobile menu animation? How do you make a drop up mobile menu animation? This script and codes were developed by Leo on 16 October 2022, Sunday.

Drop up mobile menu animation Previews

Drop up mobile menu animation - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Drop up mobile menu animation</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="smartphone"> <div class="content"> <button><span class="open">menu</span><span class="close">&#xf00d;</span></button> <ul> <li>menu</li> <li><a href="#">page 1</a></li> <li><a href="#">page 2</a></li> <li><a href="#">page 3</a></li> <li><a href="#">page 4</a></li> </ul> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Drop up mobile menu animation - Script Codes CSS Codes

@import url(https://fonts.googleapis.com/css?family=Lato:400,700);
body { background: #9cd48e; font-family: Lato; letter-spacing: 2px; -webkit-font-smoothing: antialiased;
}
/* smartphone */
#smartphone { position: absolute; margin: auto; top: 0; left: 0; bottom: 0; right: 0; width: 250px; height: 500px; border: 10px #fff solid; border-top-width: 45px; border-bottom-width: 50px; border-radius: 7px; -moz-border-radius: 7px; -webkit-border-radius: 7px;
box-shadow: rgb(144, 195, 131) 1px 1px, rgb(144, 195, 131) 2px 2px, rgb(144, 195, 131) 3px 3px, rgb(144, 195, 131) 4px 4px, rgb(144, 195, 131) 5px 5px, rgb(144, 196, 131) 6px 6px, rgb(144, 196, 131) 7px 7px, rgb(144, 196, 131) 8px 8px, rgb(145, 196, 131) 9px 9px, rgb(145, 196, 132) 10px 10px, rgb(145, 196, 132) 11px 11px, rgb(145, 197, 132) 12px 12px, rgb(145, 197, 132) 13px 13px, rgb(145, 197, 132) 14px 14px, rgb(145, 197, 132) 15px 15px, rgb(145, 197, 132) 16px 16px, rgb(146, 197, 132) 17px 17px, rgb(146, 198, 132) 18px 18px, rgb(146, 198, 133) 19px 19px, rgb(146, 198, 133) 20px 20px, rgb(146, 198, 133) 21px 21px, rgb(146, 198, 133) 22px 22px, rgb(146, 198, 133) 23px 23px, rgb(146, 199, 133) 24px 24px, rgb(147, 199, 133) 25px 25px, rgb(147, 199, 133) 26px 26px, rgb(147, 199, 133) 27px 27px, rgb(147, 199, 134) 28px 28px, rgb(147, 199, 134) 29px 29px, rgb(147, 200, 134) 30px 30px, rgb(147, 200, 134) 31px 31px, rgb(147, 200, 134) 32px 32px, rgb(147, 200, 134) 33px 33px, rgb(148, 200, 134) 34px 34px, rgb(148, 200, 134) 35px 35px, rgb(148, 201, 134) 36px 36px, rgb(148, 201, 135) 37px 37px, rgb(148, 201, 135) 38px 38px, rgb(148, 201, 135) 39px 39px, rgb(148, 201, 135) 40px 40px, rgb(148, 201, 135) 41px 41px, rgb(149, 202, 135) 42px 42px, rgb(149, 202, 135) 43px 43px, rgb(149, 202, 135) 44px 44px, rgb(149, 202, 135) 45px 45px, rgb(149, 202, 136) 46px 46px, rgb(149, 202, 136) 47px 47px, rgb(149, 203, 136) 48px 48px, rgb(149, 203, 136) 49px 49px, rgb(150, 203, 136) 50px 50px, rgb(150, 203, 136) 51px 51px, rgb(150, 203, 136) 52px 52px, rgb(150, 204, 136) 53px 53px, rgb(150, 204, 136) 54px 54px, rgb(150, 204, 137) 55px 55px, rgb(150, 204, 137) 56px 56px, rgb(150, 204, 137) 57px 57px, rgb(150, 204, 137) 58px 58px, rgb(151, 205, 137) 59px 59px, rgb(151, 205, 137) 60px 60px, rgb(151, 205, 137) 61px 61px, rgb(151, 205, 137) 62px 62px, rgb(151, 205, 137) 63px 63px, rgb(151, 205, 138) 64px 64px, rgb(151, 206, 138) 65px 65px, rgb(151, 206, 138) 66px 66px, rgb(152, 206, 138) 67px 67px, rgb(152, 206, 138) 68px 68px, rgb(152, 206, 138) 69px 69px, rgb(152, 206, 138) 70px 70px, rgb(152, 207, 138) 71px 71px, rgb(152, 207, 138) 72px 72px, rgb(152, 207, 139) 73px 73px, rgb(152, 207, 139) 74px 74px, rgb(153, 207, 139) 75px 75px, rgb(153, 207, 139) 76px 76px, rgb(153, 208, 139) 77px 77px, rgb(153, 208, 139) 78px 78px, rgb(153, 208, 139) 79px 79px, rgb(153, 208, 139) 80px 80px, rgb(153, 208, 139) 81px 81px, rgb(153, 208, 140) 82px 82px, rgb(153, 209, 140) 83px 83px, rgb(154, 209, 140) 84px 84px, rgb(154, 209, 140) 85px 85px, rgb(154, 209, 140) 86px 86px, rgb(154, 209, 140) 87px 87px, rgb(154, 209, 140) 88px 88px, rgb(154, 210, 140) 89px 89px, rgb(154, 210, 140) 90px 90px, rgb(154, 210, 141) 91px 91px, rgb(155, 210, 141) 92px 92px, rgb(155, 210, 141) 93px 93px, rgb(155, 210, 141) 94px 94px, rgb(155, 211, 141) 95px 95px, rgb(155, 211, 141) 96px 96px, rgb(155, 211, 141) 97px 97px, rgb(155, 211, 141) 98px 98px, rgb(155, 211, 141) 99px 99px, rgb(156, 212, 142) 100px 100px;
}
#smartphone:before { content: ''; display: block; width: 30px; height: 10px; margin: -25px auto; background: #9cd48e; border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; }
#smartphone:after { content: ''; display: block; width: 30px; height: 30px; margin: 10px auto; background: #9cd48e; border-radius: 30px; -moz-border-radius: 30px; -webkit-border-radius: 30px; }
#smartphone .content { width: 100%; height: 100%; margin: 40px 0 0 0; background: #9dda9e; color: #fff; font-size: 0.5em; overflow: hidden; }
/* menu */
button { position: absolute; margin: auto; top: 85%; left: 0; bottom: 0; right: 0; width: 100px; height: 35px; padding: 0; font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #fff; border: 2px #fff solid; border-radius: 2px; background: none; outline: none; cursor: pointer; z-index: 10; overflow: hidden; transition: 0.7s cubic-bezier(1,0,1,0); -o-transition: 0.7s cubic-bezier(1,0,1,0); -ms-transition: 0.7s cubic-bezier(1,0,1,0); -moz-transition: 0.7s cubic-bezier(1,0,1,0); -webkit-transition: 0.7s cubic-bezier(1,0,1,0);
}
button.on { width: 40px; transition: 0.1s linear; -o-transition: 0.1s linear; -ms-transition: 0.1s linear; -moz-transition: 0.1s linear; -webkit-transition: 0.1s linear;
}
button span { display: block; width: 90px; margin: 0 auto; line-height: 30px; transition: 1s cubic-bezier(1,.02,.7,0); -o-transition: 1s cubic-bezier(1,.02,.7,0); -ms-transition: 1s cubic-bezier(1,.02,.7,0); -moz-transition: 1s cubic-bezier(1,.02,.7,0); -webkit-transition: 1s cubic-bezier(1,.02,.7,0);
}
button span.close { font-family: FontAwesome; width: 30px; font-size: 1.3em;
}
button.on span.open { transform: translateY(-30px); -o-transform: translateY(-30px); -ms-transform: translateY(-30px); -moz-transform: translateY(-30px); -webkit-transform: translateY(-30px); transition: 0.1s linear; -o-transition: 0.1s linear; -ms-transition: 0.1s linear; -moz-transition: 0.1s linear; -webkit-transition: 0.1s linear;
}
button.on span.close { transform: translateY(-30px); -o-transform: translateY(-30px); -ms-transform: translateY(-30px); -moz-transform: translateY(-30px); -webkit-transform: translateY(-30px); transition: 0.1s linear; -o-transition: 0.1s linear; -ms-transition: 0.1s linear; -moz-transition: 0.1s linear; -webkit-transition: 0.1s linear;
}
ul { width: 100%; height: 100%; margin: 0; padding: 0; list-style: none; background: #e96151; transform: translateY(100%); -o-transform: translateY(100%); -ms-transform: translateY(100%); -moz-transform: translateY(100%); -webkit-transform: translateY(100%); transition: 1s cubic-bezier(0.8,0,1,0.5); -o-transition: 1s cubic-bezier(0.8,0,1,0.5); -ms-transition: 1s cubic-bezier(0.8,0,1,0.5); -moz-transition: 1s cubic-bezier(0.8,0,1,0.5); -webkit-transition: 1s cubic-bezier(0.8,0,1,0.5);
}
ul.on { transform: translateY(0); -o-transform: translateY(0); -ms-transform: translateY(0); -moz-transform: translateY(0); -webkit-transform: translateY(0); transition: 1s cubic-bezier(0.2,1,0.50,1); -o-transition: 1s cubic-bezier(0.2,1,0.50,1); -ms-transition: 1s cubic-bezier(0.2,1,0.50,1); -moz-transition: 1s cubic-bezier(0.2,1,0.50,1); -webkit-transition: 1s cubic-bezier(0.2,1,0.50,1);
}
li { margin: 0 15%; font-weight: 700; font-size: 13px; text-transform: uppercase; text-align: center; border-bottom: 1px rgba(255,255,255,0.2) solid;
}
li:first-child { padding: 20% 0;
}
a, a:active, a:visited { display: block; width: 100%; padding: 15% 0; color: #fff; text-decoration: none; outline: none;
}
a:hover { box-shadow: 0 0 0 3px #fff; transition: 0.1s linear; -o-transition: 0.1s linear; -ms-transition: 0.1s linear; -moz-transition: 0.1s linear; -webkit-transition: 0.1s linear;
}
a:focus, button:focus { outline: none;
}

Drop up mobile menu animation - Script Codes JS Codes

$('button').click(function () { toogle();
});
$('a').click(function () { $('span.open').text($(this).text()); toogle()
});
function toogle() { $('ul').toggleClass('on'); $('button').toggleClass('on');
}
Drop up mobile menu animation - Script Codes
Drop up mobile menu animation - Script Codes
Home Page Home
Developer Leo
Username leonard
Uploaded October 16, 2022
Rating 3.5
Size 3,516 Kb
Views 16,192
Do you need developer help for Drop up mobile menu animation?

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!

Leo (leonard) Script Codes
Create amazing SEO content 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!