How the Curtain Menu Works
- The top line contains a button that triggers the animation.
- The
divwith the class"curtain"and the ID"curtainMenu"remains hidden until the menu button is clicked. - You can customize the content inside the
"curtain"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 button at the top right of this page to trigger the curtain effect!
All you need to use this Animation is this html document.
<button class="menu-toggle" id="menuToggle">Menu</button>
<div class="curtain" id="curtainMenu">
<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>