jQuery sliding menu
A light-weight, responsive, mobile-like navigation menu plugin
Download the latest version. The files you need are;
bower install jquery-slinky
Include these files;
<script src="bower_components/slinky/dist/jquery.slinky.js"></script>
<link rel="stylesheet" src="bower_components/slinky/dist/jquery.slinky.css">
npm install jquery-slinky
Include these files;
<script src="node_modules/slinky/dist/jquery.slinky.js"></script>
<link rel="stylesheet" src="node_modules/slinky/dist/jquery.slinky.css">
var slinky = $('.menu').slinky(options);
Option | Default value | Description |
---|---|---|
label |
'Back' | Label for the back button. Pass true to use the link's own label |
title |
false |
Pass true to show title of current menu level |
speed |
300 |
Animation speed in milliseconds |
resize |
true |
Resize menu height to match content on navigation |
Navigate back to the main menu
Option | Default value | Description |
---|---|---|
animate |
true |
Pass false to skip animation |
Navigate to a sub menu
Option | Default value | Description |
---|---|---|
to |
Pass a selector for the ul element to jump to |
|
animate |
true |
Pass false to skip animation |
Remove slinky
- Set
.active
on aul
element to jump there on init