forked from pycaribbean/pycaribbean.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-index.html
239 lines (216 loc) · 6.91 KB
/
test-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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
<!DOCTYPE html>
<html lang="en">
<!-- Do not use this HTML file as a start -->
<!-- Always create your own HTML file and follow steps in basic usage section of documentation -->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title> Slider with Animated Blocks | RoyalSlider Example</title>
<meta content="Touch-enabled image gallery and content slider plugin, that focuses on providing great user experience on every desktop and mobile device." name="description">
<meta name="keywords" content="content slider, gallery, plugin, jquery, banner rotator">
<meta name="viewport" content="width = device-width, initial-scale = 1.0" />
<meta name="author" content="Dmitry Semenov">
<!-- slider JS files -->
<script class="rs-file" src="js/royal-slider/templates/assets/royalslider/jquery-1.8.3.min.js"></script>
<script class="rs-file" src="js/royal-slider/templates/assets/royalslider/jquery.royalslider.min.js"></script>
<link class="rs-file" href="js/royal-slider/templates/assets/royalslider/royalslider.css" rel="stylesheet">
<!-- syntax highlighter -->
<script src="js/royal-slider/templates/assets/preview-assets/js/highlight.pack.js"></script>
<script src="js/royal-slider/templates/assets/preview-assets/js/jquery.royalslider.min.js"></script>
<script> hljs.initHighlightingOnLoad();</script>
<!-- preview-related stylesheets -->
<link href="js/royal-slider/templates/assets/preview-assets/css/reset.css" rel="stylesheet">
<link href="js/royal-slider/templates/assets/preview-assets/css/smoothness/jquery-ui-1.8.22.custom.css" rel="stylesheet">
<link href="js/royal-slider/templates/assets/preview-assets/css/github.css" rel="stylesheet">
<!-- slider stylesheets -->
<link class="rs-file" href="js/royal-slider/templates/assets/royalslider/skins/minimal-white/rs-minimal-white.css" rel="stylesheet">
<!-- slider css -->
<style>
#slider-with-blocks-1 {
width: 100%;
}
.rsContent {
color: #FFF;
font-size: 24px;
line-height: 32px;
float: left;
}
.bContainer {
position: relative;
}
.rsABlock {
position: relative;
display: block;
left: auto;
top: auto;
}
.blockHeadline {
font-size: 42px;
line-height: 50px;
}
.blockSubHeadline {
font-size: 32px;
line-height: 40px
}
.txtCent {
text-align: center;
width: 100%;
}
.slide1 {
background: #f06b50;
}
.slide1 .bContainer {
top: 36%;
}
.slide2 {
background: #ffbc11;
color:#000;
}
.slide2 .bContainer {
top: 24px;
}
.slide2 .txtCent {
line-height: 44px;
}
.slide2 .blockHeadline {
line-height: 66px;
}
.slide3 {
background: #45aab8;
color:#FFF;
}
.slide3 .bContainer {
top: 24px;
}
.slide3 span {
line-height: 44px;
}
.slide4 .bContainer {
position: absolute;
left: 0;
width: 100%;
height: auto;
top: 24px;
}
.photoCopy {
position: absolute;
line-height: 24px;
font-size: 12px;
background: black;
color: white;
background-color: rgba(0, 0, 0, 0.75);
padding: 0px 10px;
position: absolute;
left: 12px;
bottom: 12px;
top: auto;
border-radius: 2px;
z-index: 25;
}
.photoCopy a {
color: #FFF;
}
.palmImg {
left: 0;
top: auto;
bottom: -60px;
position: absolute;
}
@media screen and (min-width: 0px) and (max-width: 960px) {
.rsContent {
font-size: 22px;
line-height: 28px;
}
.blockHeadline {
font-size: 32px;
line-height: 32px;
}
.blockSubHeadline {
font-size: 26px;
line-height: 32px
}
}
@media screen and (min-width: 0px) and (max-width: 500px) {
.royalSlider,
.rsOverflow {
height: 330px !important;
}
.rsContent {
font-size: 18px;
line-height: 26px;
}
.blockHeadline {
font-size: 24px;
line-height: 32px;
}
.blockSubHeadline {
font-size: 22px;
line-height: 32px
}
}
</style>
<style>
#page-navigation { display: none; }
</style>
</head>
<body >
<div id="slider-with-blocks-1" class="royalSlider rsMinW ">
<div class="rsContent slide1">
<div class="bContainer">
<strong class="rsABlock txtCent blockHeadline">This is an animated block</strong>
<span class="rsABlock txtCent" data-move-effect="none">you can place it on any type of slide</span>
</div>
</div>
<div class="rsContent slide2">
<div class="bContainer">
<strong class="rsABlock txtCent blockSubHeadline" data-move-effect="none">Transition Types</strong>
<span class="rsABlock txtCent" data-move-effect="top" >from top ↓</span>
<span class="rsABlock txtCent" data-move-effect="bottom">from bottom ↑</span>
<span class="rsABlock txtCent" data-move-effect="left">from left →</span>
<span class="rsABlock txtCent" data-move-effect="right">from right ←</span>
<span class="rsABlock txtCent" data-move-effect="none">just fade</span>
</div>
</div>
<div class="rsContent slide3">
<div class="bContainer">
<strong class="rsABlock txtCent blockSubHeadline" data-move-effect="none" data-delay="0">Customizable Animation</strong>
<span class="rsABlock txtCent" data-move-effect="left" data-delay="1000" data-move-offset="500" data-easing="easeOutBack" data-fade-effect="none">easing</span>
<span class="rsABlock txtCent" data-move-effect="left" data-delay="1500" data-move-offset="500" data-fade-effect="none">delay</span>
<span class="rsABlock txtCent" data-move-effect="left" data-delay="2000" data-move-offset="500" data-speed="1000" data-fade-effect="none">speed</span>
<span class="rsABlock txtCent" data-move-effect="left" data-delay="2500" data-move-offset="50" data-fade-effect="true">move offset</span>
</div>
</div>
<div class="rsContent slide4">
<a class="rsImg" href="js/royal-slider/templates/img/palmbw.jpg">palms & beach</a>
<div class="bContainer">
<strong class="rsABlock txtCent blockHeadline">Block may have any HTML</strong>
<span class="rsABlock txtCent" data-move-effect="none">and can be placed on any slide type</span>
</div>
<img class="rsABlock palmImg" data-fade-effect="none" data-move-effect="bottom" data-opposite="true" data-move-offset="450" data-delay="350" data-speed="300" data-easing="easeOutBack" src="js/royal-slider/templates/img/palms.png" data-rsw="707" data-rsh="471"/>
<div class="photoCopy">Photo by <a href="http://photo.aphecetche.fr/">Laurent Aphecetche</a></div>
</div>
</div>
<script id="addJS">jQuery(document).ready(function($) {
jQuery.rsCSS3Easing.easeOutBack = 'cubic-bezier(0.175, 0.885, 0.320, 1.275)';
$('#slider-with-blocks-1').royalSlider({
arrowsNav: true,
arrowsNavAutoHide: false,
fadeinLoadedSlide: false,
controlNavigationSpacing: 0,
controlNavigation: 'bullets',
imageScaleMode: 'none',
imageAlignCenter:false,
blockLoop: true,
loop: true,
numImagesToPreload: 6,
transitionType: 'slide',
keyboardNavEnabled: true,
block: {
delay: 400
}
});
});
</script>
</div>
</body>
</html>