0.7.0 • Published 8 years ago
generate-menu v0.7.0
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 git@github.com:DennisSmuda/generate-menu.git
cd generate-menu
npm install
npm start
License
ISC