@extends('layouts.master') @section('title') @lang('translation.Offcanvas') @endsection @section('content') @component('components.breadcrumb') @slot('li_1') UI Elements @endslot @slot('title') Off Canvas @endslot @endcomponent
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 Diffrent Placement Example: Top, Right & Bottom
Responsive offcanvas classes are available across for each breakpoint.
This is content within an .offcanvas-lg
.
Responsive offcanvas classes are available across for each breakpoint.
.offcanvas
,.offcanvas-sm
,.offcanvas-md
,.offcanvas-lg
,.offcanvas-xl
,.offcanvas-xxl
Scrolling the <body>
element is disabled when an offcanvas and its backdrop are visible. Use the data-bs-scroll
attribute to toggle <body>
scrolling and data-bs-backdrop
to toggle the backdrop.
Try scrolling the rest of the page to see this option in action.
.....
Try scrolling the rest of the page to see this option in action.