-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
94 lines (61 loc) · 2.03 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WheelScroll</title>
<link rel="stylesheet" href="dist/css/wheelScroll.css">
<style>
.container {
margin-top: 50px;
max-width: 90%;
margin-right: auto;
margin-left: auto;
}
.card {
background-color: rgb(32, 154, 235);
border: 1px solid rgb(172, 172, 172);
padding: 20px 16px;
}
.wheelScroll {
max-width: 300px;
height: 380px;
}
</style>
</head>
<body>
<div class="container">
<div style="display:flex;">
<div class="wheelScroll wheelScroll__y js-wheelScroll__y">
<div class="card">Item 1</div>
<div class="card">Item 2</div>
<div class="card">Item 3</div>
<div class="card">Item 4</div>
<div class="card">Item 5</div>
<div class="card">Item 6</div>
<div class="card">Item 7</div>
<div class="card">Item 8</div>
<div class="card">Item 9</div>
<div class="card">Item 10</div>
</div>
<div class="wheelScroll wheelScroll__x js-wheelScroll__x">
<div style="display:flex; height: 100%">
<div class="card">Item 1</div>
<div class="card">Item 2</div>
<div class="card">Item 3</div>
<div class="card">Item 4</div>
<div class="card">Item 5</div>
<div class="card">Item 6</div>
<div class="card">Item 7</div>
<div class="card">Item 8</div>
<div class="card">Item 9</div>
<div class="card">Item 10</div>
</div>
</div>
</div>
</div>
<script src="dist/js/jquery.min.js"></script>
<script src="dist/js/wheelScroll.js"></script>
</body>
</html>