No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
examples
src
.gitignore
README.md
gulpfile.js
package-lock.json
package.json

README.md

OnToggleJS

Getting Started

You need a toggle element and a element that you want to toggle.

Toggle element:

<a 
    href="#" 
    class="js-toggle" 
    data-toggle-target="js-menu"
>
    Toggler 1
</a>

Element that is toggled:

<div class="menu js-toggle-target js-menu">I am a menu</div>

Now instantiate the OnToggle constructor:

let myOnToggle = new OnToggle();