1.0.0 • Published 3 years ago
dropdownify v1.0.0
dropdownify
Create dropdown menus by adding a container with a "dropdownify" class
Installation
Make sure npm is installed and then run the following command in your project directory: npm install dropdownify
How to Use
Require dropdownify.js into your code:
require('dropdownify')
Add a div container around your dropdown menu with the class "dropdownify"
<div class="dropdownify">
<h1>Heading 1</h1>
<p>Option 1</p>
<p>Option 2</p>
<p>Option 3</p>
<p>Option 4</p>
<p>Option 5</p>
</div>
The first element in the "dropdownify" container will be the selector to hover over and all following elements will show in the dropdown menu.
Easy as pie!
1.0.0
3 years ago