1.0.0 • Published 2 years ago

dropdownify v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

  1. Require dropdownify.js into your code: require('dropdownify')

  2. 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!