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.


C:\Users\ApoorvahR\Desktop\Note.png_ Transition slide type works only with fixed position._

The default value is Overlay.

  • HTML
  • <div id="main" style="height:1000px;">
            <div id="navigationPane">
            <button id="drawerTarget" style="top:200px;left:600px;position:absolute"></button>

    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