Offcanvas
Offcanvas Demo
Use the buttons below to show and hide an offcanvas element via JavaScript that toggles the .show class on an element with the .offcanvas class.
Offcanvas Placements
Use .offcanvas-start
.offcanvas-top
.offcanvas-end
.offcanvas-bottom
these modified classes to change Offcanvas Placement respectively.
Offcanvas Scrolling Options
Scrolling the <body>
element is disabled when an offcanvas and its backdrop are visible. Use the data-bs-scroll
attribute to toggle scrolling and data-bs-backdrop
to toggle the backdrop.
Offcanvas
Some text as placeholder. In real life you can have the elements you have chosen. Like, text, images, lists, etc.
Offcanvas Left
Offcanvas Top
Offcanvas Right
Offcanvas Bottom
Colored with scrolling
Try scrolling the rest of the page to see this option in action.
Offcanvas with backdrop
.....
Backdrop with scrolling
Try scrolling the rest of the page to see this option in action.