forked from mdbootstrap/TW-Elements
-
Notifications
You must be signed in to change notification settings - Fork 1
/
options-wheelSpeed.html
163 lines (136 loc) · 5.38 KB
/
options-wheelSpeed.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!--DROP THIS FILE INTO YOUR BROWSER TO PREVIEW THE EFFECT-->
<!DOCTYPE html>
<html>
<head>
<!--ADDITTONAL LINKS TO MAKE THE EXAMPLES LOOK PRETTY-->
<!-- Bootstrap core CSS for better functionality-->
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
<!-- Some cool icons -->
<link href="https://use.fontawesome.com/releases/v5.8.2/css/all.css" rel="stylesheet">
<!-- Awesome Material Design for Bootstrap Styles -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.8.2/css/mdb.min.css" rel="stylesheet">
<!-- CORE FILES FOR PERFECT SCROLLBAR FUNCTIONALITY -->
<!-- The Perfect Scrollbar CSS files -->
<link href="../css/perfect-scrollbar.css" rel="stylesheet">
<!-- The Perfect Scrollbar JS files -->
<script src="../dist/perfect-scrollbar.js"></script>
<!--DEFINE CONTAINER-->
<style>
body {
background-color: rgba(3, 169, 244, 0.1);
}
.container {
background-color: rgb(255, 255, 255);
position: relative;
margin: 30px auto;
padding: 0px;
width: 600px;
height: 400px;
overflow: auto;
}
.container .content {
background-image: url('https://mdbootstrap.com/img/Marketing/general/logo/big/mdb.png');
width: 12800px;
height: 7200px;
color: blue;
font-size: 20px;
}
</style>
</head>
<body>
<!--EXAMPLE CONTENT-->
<section class="text-center">
<br>
<h1>Wheel Speed</h1>
<p class="lead">You can preview the effect offline below or <strong>fork ready to use template</strong> of this
example.</p>
<a class="btn btn-lg btn-outline-grey" href="https://mdbootstrap.com/freebies/perfect-scrollbar/"><i
class="fas fa-book mr-2"></i>DOCUMENTATION</a>
<a class="btn btn-lg btn-outline-black" href="https://github.com/mdbootstrap/perfect-scrollbar"><i
class="fab fa-github mr-2"></i>GITHUB</a>
<a class="btn btn-lg btn-outline-primary"
href="https://mdbootstrap.com/snippets/jquery/filipkapusta/818894?utm_campaign=PS&utm_source=Package"><i
class="fas fa-code mr-2"></i>TEMPLATE</a>
<hr>
<br>
<div class="container">
<div class="content">
<div class="alert alert-primary sticky-top font-weight-bold m-5" role="alert" style="z-index: 10; width:300px">
Default
</div>
</div>
</div>
<div class="container">
<div class="content">
<div class="alert alert-primary sticky-top font-weight-bold m-5" role="alert" style="z-index: 10; width:300px">
wheelSpeed: 10
</div>
</div>
</div>
</section>
<!--EXAMPLE CONTENT-->
<!--ADD PERFECT SCROLLBAR & DEFINE MIN LENGHT-->
<script>
var containers = document.querySelectorAll('.container');
new PerfectScrollbar(containers[0], {
wheelSpeed: 0.1
});
new PerfectScrollbar(containers[1], {
wheelSpeed: 10
});
</script>
<!--ADDITTONAL SCRIPTS TO MAKE THE EXAMPLE CONTENT LOOK PRETTY-->
<section>
<!--jQuery-->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- Bootstrap core JavaScript -->
<script type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
<!-- MDB core JavaScript -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.8.2/js/mdb.min.js">
</script>
</section>
<!-- Footer -->
<footer class="page-footer white-color font-small z-depth-5 d-block">
<!-- Copyright -->
<div class="row pt-3 px-3 w-100">
<div class="col-md-4 d-md-block d-none">
<p class="text-primary ml-3">Project maintained by
<a href="https://mdbootstrap.com/?utm_campaign=PS&utm_source=Package"><img class="align-self-top"
style="height:20px;" src="https://mdbootstrap.com/img/Marketing/general/logo/small/mdb.png"></a></p>
</div>
<div class="text-center text-primary col-md-8 col-lg-4">
<p>Docs & Examples made pretty with
<a href="https://mdbootstrap.com/jquery/docs/?utm_campaign=PS&utm_source=Package"
class="text-primary font-weight-bold">Free MDB UI Kit</a></p>
</div>
<div class="col-md-4 d-lg-block d-none">
<div class="flex-right float-right">
<!--Github-->
<a href="https://https://github.com/mdbootstrap/bootstrap-material-design" class="pin-ic">
<i class="fab fa-github fa-lg text-primary mr-4"> </i>
</a>
<!-- Facebook -->
<a href="https://www.facebook.com/mdbootstrap" class="fb-ic">
<i class="fab fa-facebook-f fa-lg text-primary mr-4"> </i>
</a>
<!-- Twitter -->
<a class="tw-ic">
<i href="https://twitter.com/mdbootstrap?lang=en" class="fab fa-twitter fa-lg text-primary mr-4"> </i>
</a>
<!--Linkedin -->
<a href="https://www.linkedin.com/company/material-design-for-bootstrap/" class="li-ic">
<i class="fab fa-linkedin-in fa-lg text-primary mr-4"> </i>
</a>
<!--Newsletter-->
<a href="https://mdbootstrap.com/docs/jquery/newsletter/" class="pin-ic">
<i class="fas fa-envelope fa-lg text-primary"> </i>
</a>
</div>
</div>
</div>
<!-- Copyright -->
</footer>
<!-- Footer -->
</body>
</html>