This pull request adds bulma-navbar-burger.js, an addition to README.md to go with it, and a version bump to 1.1.6.
This JavaScript file serves to hook up your navbar-burgers to their respective navbar-menus by ID, via a data-target attribute on the burger element. For example:
When clicked, this will expand the menu downwards:
This script is a modified version of an example script provided in the Bulma documentation - I modified it in order to update the Javascript within to a newer standard, making use of arrow functions and const instead of var. Otherwise, it behaves in exactly the same way.
This script has been tested in Firefox 65.0 and Chromium 72.0.3626.96.
This pull request adds
bulma-navbar-burger.js
, an addition toREADME.md
to go with it, and a version bump to1.1.6
.This JavaScript file serves to hook up your
navbar-burger
s to their respectivenavbar-menu
s by ID, via adata-target
attribute on the burger element. For example:This will result in the following on mobile:
When clicked, this will expand the menu downwards:
This script is a modified version of an example script provided in the Bulma documentation - I modified it in order to update the Javascript within to a newer standard, making use of arrow functions and
const
instead ofvar
. Otherwise, it behaves in exactly the same way.This script has been tested in Firefox 65.0 and Chromium 72.0.3626.96.