Facebook Paper Inspired Menu
How do I make an facebook paper inspired menu?
What is a facebook paper inspired menu? How do you make a facebook paper inspired menu? This script and codes were developed by EY-Intuitive on 17 January 2023, Tuesday.
Facebook Paper Inspired Menu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Facebook Paper Inspired Menu</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script>
<meta name="viewport" content="initial-scale=1, maximum-scale=1"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ * { box-sizing: border-box;
}
body { font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-weight: 300;
}
nav { position: fixed; transform: translate3d(0, 0, 0); left: 0; transition: all 0.4s ease; width: 100%; background: #3d3d3d; /*background-image: url('https://i.imgur.com/PjwZ6W5.png'); background-repeat: no-repeat; background-size: cover; background-position: 40% 60%;*/ height: 0; overflow: hidden; transition-delay: 0.25s;
}
.active nav { transition-delay: 0s;
}
nav ul { width: 95%; margin: 0 auto;
}
nav ul li { padding: 5px; border-bottom: 1px solid #4a4a4a; /* Reverse the order when animation out */ /*&:nth-child(1){ a { left: 140px; transition-delay: 0.3s; } } &:nth-child(2){ a { left: 180px; transition-delay: 0.2s; } } &:nth-child(3){ a { left: 220px; transition-delay: 0.1s; } } &:nth-child(4){ a { left: 260px; transition-delay: 0s; } }*/ /* Reverse the order when animation out */
}
nav ul li:nth-child(1) a { transition-delay: 0.1s;
}
nav ul li:nth-child(2) a { transition-delay: 0.15s;
}
nav ul li:nth-child(3) a { transition-delay: 0.2s;
}
nav ul li:nth-child(4) a { transition-delay: 0.25s;
}
nav ul li:last-child { border: none;
}
nav ul li a { transition: all 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955); position: relative; display: block; text-decoration: none; color: white; font-size: 18px; padding: 10px; transform: translate3d(100px, 0, 0); opacity: 0;
}
.active nav ul li a { transform: translateX(0); opacity: 1;
}
header { transition: all 0.4s ease; transform: translate3d(0, 0, 0); left: 0; width: 100%; position: fixed; background: #7190d6; color: white; padding: 20px; text-align: center; font-size: 20px; transition-delay: 0.25s;
}
.active header { transition-delay: .05s;
}
section { background: #f5f5f5; padding-top: 80px;
}
article { background: white; height: 500px; width: 95%; border-radius: 3px; margin: 0 auto 20px auto; border: 1px solid #e4e4e4;
}
.menu-button-target { background: transparent; border: none; outline: none; cursor: pointer; position: absolute; z-index: 200; left: 10px; height: 50px; top: 50%; margin-top: -23px; webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.menu-button-target.active .menu-button { transition: background .2s ease; background-color: transparent;
}
.menu-button-target.active .menu-button:before,
.menu-button-target.active .menu-button:after { transition: top .3s ease, transform .3s .2s ease;
}
.menu-button-target.active .menu-button:before { top: 0; transform: rotate(45deg);
}
.menu-button-target.active .menu-button:after { top: 0; transform: rotate(-45deg);
}
.menu-button { position: relative; top: 50%; left: 0; display: block; width: 40px; height: 4px; margin-top: -2px; background-color: white; border-radius: 10px; transition: background .2s .2s;
}
.menu-button:before,
.menu-button:after { content: ""; display: block; position: absolute; width: 100%; height: 100%; left: 0; background-color: white; transition: top .3s .2s ease, transform .3s ease; border-radius: 10px; transform-origin: 50% 50%;
}
.menu-button:before { top: -10px; transform: rotate(0deg);
}
.menu-button:after { top: 10px; transform: rotate(0deg);
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <nav class="nav" role='navigation'> <ul class="nav-items"> <li><a href="#">Home</a></li> <li><a href="#">About</a></li> <li><a href="#">Clients</a></li> <li><a href="#">Contact Us</a></li> </ul>
</nav>
<header> <button class="menu-button-target" data-ic-class="button-trigger"> <span class="menu-button"></span> </button> Intuitive Company
</header>
<section> <article></article> <article></article> <article></article> <article></article> <article></article>
</section> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Facebook Paper Inspired Menu - Script Codes CSS Codes
* { box-sizing: border-box;
}
body { font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-weight: 300;
}
nav { position: fixed; transform: translate3d(0, 0, 0); left: 0; transition: all 0.4s ease; width: 100%; background: #3d3d3d; /*background-image: url('https://i.imgur.com/PjwZ6W5.png'); background-repeat: no-repeat; background-size: cover; background-position: 40% 60%;*/ height: 0; overflow: hidden; transition-delay: 0.25s;
}
.active nav { transition-delay: 0s;
}
nav ul { width: 95%; margin: 0 auto;
}
nav ul li { padding: 5px; border-bottom: 1px solid #4a4a4a; /* Reverse the order when animation out */ /*&:nth-child(1){ a { left: 140px; transition-delay: 0.3s; } } &:nth-child(2){ a { left: 180px; transition-delay: 0.2s; } } &:nth-child(3){ a { left: 220px; transition-delay: 0.1s; } } &:nth-child(4){ a { left: 260px; transition-delay: 0s; } }*/ /* Reverse the order when animation out */
}
nav ul li:nth-child(1) a { transition-delay: 0.1s;
}
nav ul li:nth-child(2) a { transition-delay: 0.15s;
}
nav ul li:nth-child(3) a { transition-delay: 0.2s;
}
nav ul li:nth-child(4) a { transition-delay: 0.25s;
}
nav ul li:last-child { border: none;
}
nav ul li a { transition: all 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955); position: relative; display: block; text-decoration: none; color: white; font-size: 18px; padding: 10px; transform: translate3d(100px, 0, 0); opacity: 0;
}
.active nav ul li a { transform: translateX(0); opacity: 1;
}
header { transition: all 0.4s ease; transform: translate3d(0, 0, 0); left: 0; width: 100%; position: fixed; background: #7190d6; color: white; padding: 20px; text-align: center; font-size: 20px; transition-delay: 0.25s;
}
.active header { transition-delay: .05s;
}
section { background: #f5f5f5; padding-top: 80px;
}
article { background: white; height: 500px; width: 95%; border-radius: 3px; margin: 0 auto 20px auto; border: 1px solid #e4e4e4;
}
.menu-button-target { background: transparent; border: none; outline: none; cursor: pointer; position: absolute; z-index: 200; left: 10px; height: 50px; top: 50%; margin-top: -23px; webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.menu-button-target.active .menu-button { transition: background .2s ease; background-color: transparent;
}
.menu-button-target.active .menu-button:before,
.menu-button-target.active .menu-button:after { transition: top .3s ease, transform .3s .2s ease;
}
.menu-button-target.active .menu-button:before { top: 0; transform: rotate(45deg);
}
.menu-button-target.active .menu-button:after { top: 0; transform: rotate(-45deg);
}
.menu-button { position: relative; top: 50%; left: 0; display: block; width: 40px; height: 4px; margin-top: -2px; background-color: white; border-radius: 10px; transition: background .2s .2s;
}
.menu-button:before,
.menu-button:after { content: ""; display: block; position: absolute; width: 100%; height: 100%; left: 0; background-color: white; transition: top .3s .2s ease, transform .3s ease; border-radius: 10px; transform-origin: 50% 50%;
}
.menu-button:before { top: -10px; transform: rotate(0deg);
}
.menu-button:after { top: 10px; transform: rotate(0deg);
}
Facebook Paper Inspired Menu - Script Codes JS Codes
var $menuTrigger = $('[data-ic-class="button-trigger"]'), $menuOverlay = $('[data-ic-class="overlay"]'), $menuItem = $('.menu-item'), activeClass = 'active', $nav = $('nav'), $navULHeight = $('.nav-items').outerHeight(), navOpen = false, $header = $('header');
var isTouch = false;
if($('html').hasClass('touch')){ isTouch = true;
}
function menuFunction(){ $menuTrigger.toggleClass(activeClass); if(!navOpen){ $nav.height($navULHeight); navOpen = true; $('body').addClass('active'); $header.css('transform', 'translate3d(0, ' + $navULHeight + 'px, 0)'); } else { $nav.height(0); $header.css('transform', 'translate3d(0, 0, 0)'); navOpen = false; $('body').removeClass('active'); }
}
if(isTouch) { $menuTrigger.on('touchstart', function(){ menuFunction(); });
}
if(!isTouch) { $menuTrigger.on('click', function(){ menuFunction(); });
}
Developer | EY-Intuitive |
Username | ey_intuitive |
Uploaded | January 17, 2023 |
Rating | 4.5 |
Size | 5,617 Kb |
Views | 6,072 |
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 |
Star Wars Name Generator | 3,490 Kb |
Jquery Flyout Navigation | 2,667 Kb |
Gradient Hover Transition on Buttons | 4,209 Kb |
Progress Button Animation | 3,659 Kb |
Reading Interaction | 2,598 Kb |
Button Text Color Accessibility Mixin Test | 4,555 Kb |
A Pen by EY-Intuitive | 3,258 Kb |
Pure CSS3 Flyout Navigation | 3,500 Kb |
Xbox One Achievement Unlocked Alert | 4,060 Kb |
Awesome Search Button with Input Animation | 3,633 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 |
Halo 5 REQ Guide Bookmarklet | Cwacht | 3,993 Kb |
Login with flip 3d animation | Afiq | 3,012 Kb |
Animated skewed panes | NyX | 4,462 Kb |
Responsive Menu I | Rodericksandoval | 3,045 Kb |
Long Shadow Button | Uixcrazy | 3,550 Kb |
SVG Circle Progress | JMChristensen | 3,368 Kb |
Electric worm | Jeffibacache | 2,377 Kb |
Random Gradients - JS | Aldlevine | 2,026 Kb |
Jstam.com Home Page | Jstam | 10,558 Kb |
Dribbble Template | ExtremelyGinger | 2,204 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!