Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 

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();

About

No description, website, or topics provided.

Resources

Releases

No releases published

Packages

No packages published