This time I will share jQuery Plugin and tutorial about Responsive jQuery Mobile-Style Sliding Menu Plugin – Slinky, hope it will help you in programming stack.
Slinky is a fully responsive jQuery plugin used to create a mobile App style sliding navigation menu that has nested ul
based multi-level functionality. The next level can cover the previous one with a smooth sliding effect to save space on your web page.
Installation:
2 |
$ yarn add jquery-slinky |
5 |
$ npm install jquery-slinky --save |
How to use it:
1. Include the jQuery sliding menu plugin and other resources in your Html file.
1 |
< link rel = "stylesheet" type = "text/css" href = "css/jquery-sliding-menu.css" > |
3 |
< script type = "text/javascript" src = "js/jquery-sliding-menu.js" ></ script > |
2. Create an empty container element for the sliding navigation menu.
3. Create menu items using nested Html lists.
03 |
< li > < a href = "#" >Artists</ a > |
05 |
< li > < a href = "#" >Aerosmith</ a > |
07 |
< li > < a href = "#" >Get Your Wings</ a > |
09 |
< li > < a href = "#" >Train Kept A-Rollin'</ a > </ li > |
10 |
< li > < a href = "#" >Same Old Song and Dance</ a > </ li > |
15 |
< li > < a href = "#" >Eagles</ a > |
17 |
< li > < a href = "#" >Hotel California</ a > |
19 |
< li > < a href = "#" >Hotel California</ a > </ li > |
20 |
< li > < a href = "#" >Pretty Maids All in a Row</ a > </ li > |
25 |
< li > < a href = "#" >Led Zeppelin</ a > |
27 |
< li > < a href = "#" >Physical Graffiti</ a > |
29 |
< li > < a href = "#" >In My Time of Dying</ a > </ li > |
30 |
< li > < a href = "#" >Houses of the Holy</ a > </ li > |
37 |
< li > < a href = "#" >Albums</ a > |
39 |
< li > < a href = "#" >Get Your Wings</ a > |
41 |
< li > < a href = "#" >Train Kept A-Rollin'</ a > </ li > |
42 |
< li > < a href = "#" >Same Old Song and Dance</ a > </ li > |
45 |
< li > < a href = "#" >Hotel California</ a > |
47 |
< li > < a href = "#" >Hotel California</ a > </ li > |
48 |
< li > < a href = "#" >Pretty Maids All in a Row</ a > </ li > |
51 |
< li > < a href = "#" >Physical Graffiti</ a > |
53 |
< li > < a href = "#" >In My Time of Dying</ a > </ li > |
54 |
< li > < a href = "#" >Houses of the Holy</ a > </ li > |
59 |
< li > < a href = "#" >Songs</ a > |
61 |
< li > < a href = "#" >In My Time of Dying</ a > </ li > |
62 |
< li > < a href = "#" >Houses of the Holy</ a > </ li > |
63 |
< li > < a href = "#" >Hotel California</ a > </ li > |
64 |
< li > < a href = "#" >Pretty Maids All in a Row</ a > </ li > |
65 |
< li > < a href = "#" >Train Kept A-Rollin'</ a
source : jquery.net
|