dropdownify

1.0.0 • Public • Published

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!

Readme

Keywords

Package Sidebar

Install

npm i dropdownify

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

4.88 kB

Total Files

4

Last publish

Collaborators

  • mmjordan11