-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
105 lines (93 loc) · 2.58 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
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html lang="nl" class="no-js">
<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>Swipr</title>
<link rel="stylesheet" href="dist/css/swipr.css">
<style type="text/css">
body {
margin: 0;
padding: 40px;
background: #eee;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 18px;
line-height: 24px;
color: #222;
}
* {
box-sizing: border-box;
}
.wrapper {
height: 40px;
margin-bottom: 40px;
}
.items {
display: flex;
}
.item {
width: 200px;
height: 40px;
background: #3498db;
flex: 0 0 auto;
margin: 0 8px;
}
.is-enabled {
padding-left: 80px;
padding-right: 80px;
}
.is-active {
background: red;
}
</style>
</head>
<body>
<div class="wrapper" data-swipr-wrapper>
<div class="items items1" data-swipr>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
</div>
<div class="wrapper" data-swipr-wrapper>
<div class="items items2" data-swipr>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
</div>
<div class="wrapper" data-swipr-wrapper>
<div class="items items3" data-swipr>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item is-active" data-swipr-start></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
<div class="item"></div>
</div>
</div>
<!-- loading swipr -->
<script src="src/js/swipr.js"></script>
<!-- initializing the menu -->
<script type="text/javascript">
var swiper = new swipr({
swiper: '[data-swipr]'
});
</script>
</body>
</html>