forked from prjct-samwest/docSlider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample_horizontal.html
45 lines (42 loc) · 1.12 KB
/
sample_horizontal.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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="docSlider.css">
<style>
section:nth-child(odd){
background-color: #eee;
}
.inner{
height: 100%;
display: flex;
justify-content: center;
align-items: center;
font-weight: bold;
font-size: 2em;
}
</style>
<title>Sample :: docSlider.js</title>
</head>
<body>
<div class="docSlider">
<section>
<div class="inner">Page1</div>
</section>
<section>
<div class="inner">Page2</div>
</section>
<section>
<div class="inner">Page3</div>
</section>
<section>
<div class="inner">Page4</div>
</section>
</div>
<script src="docSlider.min.js"></script>
<script>docSlider.init({horizontal: true});</script>
</body>
</html>