You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ The plugin is built on jQuery 2.1.0 but could potentially work with older and ne
13
13
##How to use it?
14
14
1- Download the sliiide js file (or the minified version) from the github repo, include the js file before the body end tag and make sure jQuery is included before it. Or just use bower "bower install sliiide"
15
15
16
-
2- you’ll need a div (a nav menu or whatever you have in mind) and set its visibility to hidden. PLEASE MAKE SURE THIS DIV IS A DIRECT CHILD OF THE BODY ELEMENT. You also need a settings object.
16
+
2- you’ll need a div (a nav menu or whatever you have in mind) and set its visibility to hidden. PLEASE MAKE SURE THIS DIV IS A DIRECT CHILD OF THE BODY ELEMENT. You also need a settings object.
17
17
```
18
18
var settings = {
19
19
toggle: "#sliiider-toggle", // the selector for the menu toggle, whatever clickable element you want to activate or deactivate the menu. A click listener will be added to this element.
@@ -22,7 +22,8 @@ The plugin is built on jQuery 2.1.0 but could potentially work with older and ne
22
22
place: "left", //where is the menu sliding from, possible options are (left | right | top | bottom)
23
23
animation_curve: "cubic-bezier(0.54, 0.01, 0.57, 1.03)", //animation curve for the sliding animation
24
24
body_slide: true, //set it to true if you want to use the effect where the entire page slides and not just the div
25
-
no_scroll: true //set to true if you want the scrolling disabled while the menu is active
25
+
no_scroll: true, //set to true if you want the scrolling disabled while the menu is active
26
+
auto_close: false //set to true if you want the slider to auto close everytime a child link of it is clicked
0 commit comments