Offcanvas

  1. Home
Default Offcanvas

Basic Offcanvas example.

Placement

Try the 'top', 'right' and 'bottom' examples out below.

Scrolling

Scrolling the '<body>' element is disabled when an offcanvas and its backdrop are visible. Use the '[--body-scroll:true]' attribute to toggle '<body>' scrolling and '[--overlay-backdrop:false]' to toggle the backdrop.

Custom backdrop color

Scrolling the 'hs-overlay-backdrop-open:' to change the backdrop color.