Skip to content
Justice Tech School

Offcanvas

offcanvas slides a panel from an edge.

Example
<button class="btn btn-primary" data-bs-toggle="offcanvas" data-bs-target="#side">Open</button>
<div class="offcanvas offcanvas-start" id="side">
  <div class="offcanvas-header"><h5>Menu</h5></div>
  <div class="offcanvas-body">Links</div>
</div>

Exercise

From the left.

class="offcanvas offcanvas-"

Quiz Test

Which makes it slide from the right?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.