+
+ Installation
+
+
+
+
+ - Add the pushbar.css file to the head of your html.
+ - Add the pushbar.js file to the head of your html or right before the closing body tag.
+ -
+ Add this code after the pushbar.js script tag to initialize the plugin.
+
+
+
+
+
+
+
+
+
+
+
+
+ Example html
+
+
+
+
+
+
+
+
+ How to use
+
+
+ Your pushbar must have the class .pushbar and any of the directional classes: .from_left, .from_right, .from_top, .from_bottom to set the opening direction.
+ Pushbar also must have an attribute : data-pushbar-id , which must have a unique value for that pushbar.
+ Your pushbar open button must have an attribute : data-pushbar-target, with the name of the pushbar as value (same value as data-pushbar-id).
+ data-pushbar-close attribute, with the name of the pushbar as value, can be used on any element to make it a close button for given pushbar.
+ Your main content must have the class .pushbar_main_content.
+ You can also nest pushbars, even different types of them. (Some level of tweaking css a bit may be necessary)
+ Keyboard navigation included, close open pushbars by using "Escape" key.
+
+
+
+
+
+ Options
+
+
+
+
+ - blur : set it to true for blur effect on the main content (Default:false)
+ - overlay : set it to true for dark overlay effect on the main content (Default:true)
+
+
+
+
+
+
+ API
+
+
+ Open and close pushbar with api
+
+
+
+
+
+
+
+
+ Emitted events
+
+
+
+ 'pushbar_opening': when a pushbar is opening, that pushbar element will emit this event.
+ 'pushbar_closing': when a pushbar is closing, that pushbar element will emit this event.
+
+
+
+
+
+
+ Important CSS classes for modification
+
+
+
+
+ - .from_left, .from_right: change the width for your sidebars.
+ - .from_top, .from_bottom: change the height for your top and bottom bars.
+ - .pushbar_overlay: change the background and opacity for the overlay.
+
+
+
+
+
+
- Installation
-
-
-
-
- - Add the pushbar.css file to the head of your html.
- - Add the pushbar.js file to the head of your html or right before the closing body tag.
- - Add this code after the pushbar.js script tag to initialize the plugin.
-
-
-
-
-
-
-
-
-
-
- Example html
-
-
-
-
-
-
-
-
-
-
-
-
- Options
-
-
-
-
- - blur : set it to true for blur effect on the main content (Default:false)
- - overlay : set it to true for dark overlay effect on the main content (Default:true)
-
-
-
-
-
-
- API
-
-
-
- Open and close pushbar with api
-
-
-
-
-
-
- Emitted events
-
-
-
- 'pushbar_opening': when a pushbar is opening, that pushbar element will emit this event.
- 'pushbar_closing': when a pushbar is closing, that pushbar element will emit this event.
-
-
-
-
-
-
-