-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbackdrop.html
127 lines (122 loc) · 3.34 KB
/
backdrop.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Material Design for Bootstrap</title>
<!-- MDB icon -->
<link rel="icon" href="img/mdb-favicon.ico" type="image/x-icon" />
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.2/css/all.css" />
<!-- Google Fonts Roboto -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap" />
<!-- MDB -->
<link rel="stylesheet" href="css/bootstrap-offcanvas.min.css" />
</head>
<body>
<!-- Start your project here-->
<button
class="btn btn-primary"
type="button"
data-mdb-toggle="offcanvas"
data-mdb-target="#offcanvasScrolling"
aria-controls="offcanvasScrolling"
>
Enable body scrolling
</button>
<button
class="btn btn-primary"
type="button"
data-mdb-toggle="offcanvas"
data-mdb-target="#offcanvasWithBackdrop"
aria-controls="offcanvasWithBackdrop"
>
Enable backdrop (default)
</button>
<button
class="btn btn-primary"
type="button"
data-mdb-toggle="offcanvas"
data-mdb-target="#offcanvasWithBothOptions"
aria-controls="offcanvasWithBothOptions"
>
Enable both scrolling & backdrop
</button>
<div
class="offcanvas offcanvas-start"
data-mdb-scroll="true"
data-mdb-backdrop="false"
tabindex="-1"
id="offcanvasScrolling"
aria-labelledby="offcanvasScrollingLabel"
>
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="offcanvasScrollingLabel">
Colored with scrolling
</h5>
<button
type="button"
class="btn-close text-reset"
data-mdb-dismiss="offcanvas"
aria-label="Close"
></button>
</div>
<div class="offcanvas-body">
<p>
Try scrolling the rest of the page to see this option in action.
</p>
</div>
</div>
<div
class="offcanvas offcanvas-start"
tabindex="-1"
id="offcanvasWithBackdrop"
aria-labelledby="offcanvasWithBackdropLabel"
>
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="offcanvasWithBackdropLabel">
Offcanvas with backdrop
</h5>
<button
type="button"
class="btn-close text-reset"
data-mdb-dismiss="offcanvas"
aria-label="Close"
></button>
</div>
<div class="offcanvas-body">
<p>.....</p>
</div>
</div>
<div
class="offcanvas offcanvas-start"
data-mdb-scroll="true"
tabindex="-1"
id="offcanvasWithBothOptions"
aria-labelledby="offcanvasWithBothOptionsLabel"
>
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="offcanvasWithBothOptionsLabel">
Backdrop with scrolling
</h5>
<button
type="button"
class="btn-close text-reset"
data-mdb-dismiss="offcanvas"
aria-label="Close"
></button>
</div>
<div class="offcanvas-body">
<p>
Try scrolling the rest of the page to see this option in action.
</p>
</div>
</div>
<!-- End your project here-->
<!-- MDB -->
<script type="text/javascript" src="js/mdb.min.js"></script>
<!-- Custom scripts -->
<script type="text/javascript"></script>
</body>
</html>