4.0.1 • Published 6 months ago

infinity-burger v4.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
6 months ago

infinity-burger

A new kind of hamburger menu.

No library dependencies. Cuts the mustard on CSSStyleSheet#replaceSync. Demo on zachleat.com and GitHub Pages.

  1. Click once to start the animation. Uses a meandering horizontal position.
  2. Click again to reset to the initial state, a three layer hamburger menu.

Markup:

<script type="module" src="infinity-burger.js"></script>
<infinity-burger></infinity-burger>

Release Notes

  • v1.0 and v2.0: Click states: (a) single vertical column (b) random position and rotation (c) resets back to vertical column (d) reset to three bars
  • v3.0: Simplifies the thing to two states (on and off), the menu just meanders a bit on the horizontal axis.
  • v4.0: Uses a custom element with Shadow DOM, simplifies markup and removes external stylesheet.
4.0.1

6 months ago

4.0.0

6 months ago

3.0.0

5 years ago

2.0.4

5 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.0

8 years ago