Google Material Design Nav Submenu Animation
How do I make an google material design nav submenu animation?
What is a google material design nav submenu animation? How do you make a google material design nav submenu animation? This script and codes were developed by EY-Intuitive on 17 January 2023, Tuesday.
Google Material Design Nav Submenu Animation - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Google Material Design Nav Submenu Animation</title> <meta name="viewport" content="width=device-width, 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;
}
html,
body { height: 100%;
}
body { font-size: 18px; line-height: 22px; font-family: Helvetica;
}
.menu { background: #16a085; width: 300px; height: 100%;
}
.item { display: block; width: 100%; padding: 15px; background: transparent; outline: none; border: none; text-align: left; font-size: 18px; line-height: 22px; font-family: Helvetica; cursor: pointer;
}
.submenu-container { overflow: hidden;
}
.submenu { transition: all 0.5s ease; background: #bdc3c7; margin-top: -5000px;
}
.submenu li { padding: 15px;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class="menu"> <button class="item">Components</button> <div class="submenu-container"> <ul class="submenu" data-ic-class="submenu"> <li>Header</li> <li>Footer</li> <li>Notification</li> <li>Button</li> <li>Input</li> <li>Checkbox</li> <li>Radio</li> </ul> </div> <button class="item">Demos</button> <div class="submenu-container"> <ul class="submenu" data-ic-class="submenu"> <li>Documentation</li> <li>Usage</li> <li>Layout</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>
Google Material Design Nav Submenu Animation - Script Codes CSS Codes
* { box-sizing: border-box;
}
html,
body { height: 100%;
}
body { font-size: 18px; line-height: 22px; font-family: Helvetica;
}
.menu { background: #16a085; width: 300px; height: 100%;
}
.item { display: block; width: 100%; padding: 15px; background: transparent; outline: none; border: none; text-align: left; font-size: 18px; line-height: 22px; font-family: Helvetica; cursor: pointer;
}
.submenu-container { overflow: hidden;
}
.submenu { transition: all 0.5s ease; background: #bdc3c7; margin-top: -5000px;
}
.submenu li { padding: 15px;
}
Google Material Design Nav Submenu Animation - Script Codes JS Codes
var submenuHeight = $('.submenu').outerHeight();
console.log(submenuHeight);
$('.submenu').css('margin-top', '-' + submenuHeight + 'px');
$('.item').each(function() { var clicker = true; $(this).click(function() { if(clicker) { $(this).next('.submenu-container').find('.submenu').css('margin-top', '0'); clicker = false; } else if (!clicker) { $(this).next('.submenu-container').find('.submenu').css('margin-top', '-' + submenuHeight + 'px'); clicker = true; } })
});
Developer | EY-Intuitive |
Username | ey_intuitive |
Uploaded | January 17, 2023 |
Rating | 3 |
Size | 3,009 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 |
Jquery Flyout Navigation | 2,667 Kb |
Hidden Push Nav with Flyouts | 3,948 Kb |
Reading Interaction | 2,598 Kb |
Xbox One Achievement Unlocked Alert | 4,060 Kb |
Gradient Hover Transition on Buttons | 4,209 Kb |
UI Color Shade Previewer | 3,159 Kb |
Draggable Timeline Demo | 4,548 Kb |
Awesome Search Button with Input Animation | 3,633 Kb |
Button Text Color Accessibility Mixin Test | 4,555 Kb |
Progress Button Animation | 3,659 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 |
Multi column experiment. | Spylefkaditis | 2,805 Kb |
Slide In Panel | Vikvarg | 2,811 Kb |
Importable Clearfix | Corysimmons | 1,411 Kb |
PNotify Demo | Adittmar | 1,731 Kb |
Loading animation | Codeams | 2,408 Kb |
A Different Type of Gallery | DonPage | 2,950 Kb |
Page Transitions in Backbone | Mikefowler | 3,691 Kb |
Improve | Gavra | 1,652 Kb |
Sidebar Thing | Jonambas | 2,779 Kb |
APortfolio | Skybutterfly | 5,174 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!