-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
115 lines (104 loc) · 2.91 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
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<style type="text/css">
body {
background: #000;
}
.wrap-view {
position: absolute;
left: 10%;
top: 10%;
right: 10%;
bottom: 10%;
overflow: hidden;
}
/* PAGING
----------------------------------------------------------------- */
.view-slide-nav-wrapper {
height: 100%;
position: fixed;
right: 12%;
top:0;
overflow: hidden;
white-space: nowrap;
}
.view-slide-nav-wrapper:before {
height: 100%;
display: inline-block;
vertical-align: middle;
content: '';
}
.view-slide-nav {
display: inline-block;
white-space: normal;
vertical-align: middle;
}
.nav-item {
width: 25px;
height: 25px;
border-radius: 50%;
background: #4f4f4f;
background: rgba(79,79,79,0.4);
margin: 0 0 10px 0;
cursor: pointer;
}
.nav-item.active {
background: #fff;
background: rgba(255,255,255,0.7);
}
</style>
</head>
<body>
<!--REQUIRED-->
<link rel="stylesheet" href="multiSlide.css">
<script src="lib/jquery-1.10.2.min.js"></script>
<script src="lib/jquery.animate-enhanced.js"></script>
<script src="lib/jquery.easing.1.3.min.js"></script>
<script src="lib/jquery.mousewheel.js"></script>
<script src="multiSlide.js"></script>
<!--REQUIRED-->
<script type="text/javascript">
$(function () {
var multiSlide = $(".viewport-block").multiSlide({
slideTime: 700, // время перекючения слайда
easingType: "swing", // или функцию Безье
paging: ".view-slide-nav .nav-item", // класс элемента навигации
activeSlideCss: "active", // CSS класс для активного слайда
beforeShow: function(currentSlide, newIndex){
},
afterShow: function(newIndex){
}
});
});
</script>
<div class="wrap-view">
<div class="viewport-block">
<div class="view-slide active" style="background:#000 url('images/s-1.jpg') no-repeat center center; background-size: cover;">
1 slide
</div>
<div class="view-slide" style="background:#000 url('images/s-2.jpg') no-repeat center center; background-size: cover;">
2 slide
</div>
<div class="view-slide" style="background:#000 url('images/s-3.jpg') no-repeat center center; background-size: cover;">
3 slide
</div>
</div>
</div>
<div class="view-slide-nav-wrapper">
<div class="view-slide-nav">
<div class="nav-item active"></div>
<div class="nav-item"></div>
<div class="nav-item"></div>
</div>
</div>
</body>
</html>