generate-menu
v0.7.0
Published
HTML Menu based on headlines within a single page
Downloads
9
Maintainers
Readme
Generate Menu
Outputs a html menu structure to a target <ul>
and sets up links to the corresponding sections within your page, which are scrolled to by scroll-to-element
MenuGenerator(selector, target)
Options
ToDo :
expose easing options
sub-menus?
Usage
import generateMenu from 'menu-generator'
// - headline is the class selector
// - target is the id of the <ul>
generateMenu('headline', 'test-target');
Develop
git clone [email protected]:DennisSmuda/generate-menu.git
cd generate-menu
npm install
npm start
License
ISC