Contact Support
Animations
You can set the transition type of the Navigation Drawer by using type property. The possible transition types are slide and overlay.
- Slide - both navigation panel and content page slides towards left/right direction to view the navigation panel items.
- Overlay - Only the navigation panel slides over the content page to view the navigation panel items. That is, part of the content page is hidden under navigation panel.
NOTE
_ Transition slide type works only with fixed position._
The default value is Overlay.
<div id="main" style="height:1000px;">
<div id="navigationPane">
<ul>
<li>Settings</li>
<li>Read</li>
<li>Help</li>
<li>About</li>
</ul>
</div>
<button id="drawerTarget" style="top:200px;left:600px;position:absolute"></button>
</div>
Add the following code in the script tag.
$("#navigationPane").ejNavigationDrawer({ type: "slide", position: "fixed", targetId: "drawerTarget", enableListView: true, listViewSettings: { width: 300 }});
$("#drawerTarget").ejButton({ text: "OpenDrawer" });
The following screenshot illustrates the output.
Before target click
After target click