bootslide

Builds an iphone type menu

Usage no npm install needed!

<script type="module">
  import bootslide from 'https://cdn.skypack.dev/bootslide';
</script>

README

bootslide

An iphone style navigation menu.

See an example here

To reset a menu:

menu.reset()

A target can be

  1. An array of sub menu items

  2. A string for an href

  3. A callback that's fired when the menu item is clicked. e.g.


target: function (e, <args>) {
  // this -> The link they clicked
  // e -> The event
  // args -> you set this
}