Demo
Usage
const slinky = $(…).slinky(options)
Options
Parameter | Default | Description |
---|---|---|
resize | true | Resize menu height to match content on navigation |
speed | 300 | Transition speed in milliseconds |
theme | slinky-theme-default | Slinky theme |
title | false | Show title of sub menu |
API
.home(animate)
Navigate back to the root menu
Parameter | Default | Description |
---|---|---|
animate | true | Pass false to skip animation |
.jump(target, animate)
Navigate to a sub menu
Parameter | Default | Description |
---|---|---|
target | – | Selector for ul target to jump to |
animate | true | Pass false to skip animation |
.destroy()
Remove Slinky
Tips
Set .active on a ul element to jump there on init