-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
93 lines (91 loc) · 3.35 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.0/css/bulma.min.css">
<style>
#app {
max-width: 567px;
margin: 0px auto;
padding: 0px 10px;
}
</style>
<link rel="stylesheet" href="dist/styles/nyelider.css">
<title>Nyelider</title>
</head>
<body>
<div id="app">
<div class="nyelider" id="carouselHeader">
<div class="nyelider-inner">
<div class="nyelider-grid">
<div class="nyelider-item">
<div class="box has-background-dark">
<h2 class="has-text-centered is-size-2 has-text-white has-text-weight-bold">1</h2>
</div>
</div>
<div class="nyelider-item">
<div class="box has-background-dark">
<h2 class="has-text-centered is-size-2 has-text-white has-text-weight-bold">2</h2>
</div>
</div>
<div class="nyelider-item">
<div class="box has-background-dark">
<h2 class="has-text-centered is-size-2 has-text-white has-text-weight-bold">3</h2>
</div>
</div>
<div class="nyelider-item">
<div class="box has-background-dark">
<h2 class="has-text-centered is-size-2 has-text-white has-text-weight-bold">4</h2>
</div>
</div>
<div class="nyelider-item">
<div class="box has-background-dark">
<h2 class="has-text-centered is-size-2 has-text-white has-text-weight-bold">5</h2>
</div>
</div>
<div class="nyelider-item">
<div class="box has-background-dark">
<h2 class="has-text-centered is-size-2 has-text-white has-text-weight-bold">6</h2>
</div>
</div>
<div class="nyelider-item">
<div class="box has-background-dark">
<h2 class="has-text-centered is-size-2 has-text-white has-text-weight-bold">7</h2>
</div>
</div>
<div class="nyelider-item">
<div class="box has-background-dark">
<h2 class="has-text-centered is-size-2 has-text-white has-text-weight-bold">8</h2>
</div>
</div>
<div class="nyelider-item">
<div class="box has-background-dark">
<h2 class="has-text-centered is-size-2 has-text-white has-text-weight-bold">9</h2>
</div>
</div>
<div class="nyelider-item">
<div class="box has-background-dark">
<h2 class="has-text-centered is-size-2 has-text-white has-text-weight-bold">10</h2>
</div>
</div>
</div>
</div>
<div class="nyelider-control">
<button class="nyelider-prev"></button>
<button class="nyelider-next"></button>
</div>
<div class="nyelider-indicator"></div>
</div>
</div>
<script src="dist/scripts/nyelider.js"></script>
<script>
let carouselHeader = new Nyelider({
el: '#carouselHeader',
size: 3,
withIndicator: true
});
carouselHeader.init();
</script>
</body>
</html>