How the Accordion Menu Works
- The top line contains a button that triggers the dropdown.
- The
divwith the class"accord-content"remains hidden until the menu button is clicked. - You can customize the content inside the
"accord-content"divbased on your navigation needs. - The last section is the
"content"div, where you place your website content—whatever that may be.
Please Click on the Menu button above to trigger the dropdown effect!
All you need to use this Animation is this html document.
<button class="accord border-0 bg039 white p-10 wp-100 rounded text-sm">Menu</button>
<div class="accord-content bg039">
<ul class="menu-items">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<div class="content">
<h1>Welcome to Our Website</h1>
<p>This is where your contents will be.</p>
</div>