<!DOCTYPE html>
<
html
>
<
head
>
<
meta
charset
=
"utf-8"
>
<
meta
name
=
"viewport"
content
=
"width=device-width, initial-scale=1"
>
<
link
rel
=
"stylesheet"
href
=
<
script
src
=
</
script
>
</
head
>
<
body
class
=
"text-center m-3"
>
<
h1
class
=
"text-success"
>GeeksforGeeks</
h1
>
<
h3
>Bootstrap 5 Offcanvas usage</
h3
>
<
button
class
=
"btn btn-primary"
type
=
"button"
data-bs-toggle
=
"offcanvas"
data-bs-target
=
"#offcanvasId"
>
Click here toggle Offcanvas at left
</
button
>
<
button
class
=
"btn btn-primary"
type
=
"button"
data-bs-toggle
=
"offcanvas"
data-bs-target
=
"#offcanvasId2"
>
Click here toggle Offcanvas at right
</
button
>
<
div
class
=
"offcanvas offcanvas-start"
id
=
"offcanvasId"
>
<
div
class
=
"offcanvas-header"
>
<
h1
class
=
"text-success"
>GeeksforGeeks</
h1
>
<
button
type
=
"button"
class
=
"text-reset btn-close"
data-bs-dismiss
=
"offcanvas"
>
</
button
>
</
div
>
<
div
class
=
"offcanvas-body"
>
GeeksforGeeks is a Computer Science portal for geeks.
It contains well written, well thought and well explained
computer science and programming articles, quizzes etc.
</
div
>
</
div
>
<
div
class
=
"offcanvas offcanvas-end"
id
=
"offcanvasId2"
>
<
div
class
=
"offcanvas-header"
>
<
h1
class
=
"text-success "
>GeeksforGeeks</
h1
>
<
button
type
=
"button"
class
=
"text-reset btn-close"
data-bs-dismiss
=
"offcanvas"
>
</
button
>
</
div
>
<
div
class
=
"offcanvas-body"
>
GeeksforGeeks is a Computer Science portal for geeks.
It contains well written, well thought and well explained
computer science and programming articles, quizzes etc.
</
div
>
</
div
>
</
body
>
</
html
>