forked from marvinhuebner/slick-animation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
122 lines (94 loc) · 3.21 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
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html>
<head lang="de">
<!---->
<meta charset="UTF-8">
<title>Slick Animation</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="bower_components/slick-carousel/slick/slick.css">
<link rel="stylesheet" href="bower_components/animate.css/animate.css">
<style>
body {
background-color: deepskyblue;
margin: 0px;
font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
}
.headline {
text-align: center;
margin:30px 0px 90px 0px;
color: white;
}
#content {
max-width: 800px;
margin: 0 auto;
padding: 0px 30px;
}
.slick-slider {
background-color: white;
padding: 15px;
overflow: hidden;
}
.slick-track {
overflow: hidden;
}
.slick-slider-init {
position: relative;
}
[data-animation-in] {
opacity: 0;
}
.slick-prev {
position: absolute;
bottom: 0;
left: 0;
}
.slick-next {
position: absolute;
bottom: 0;
right: 0;
}
</style>
</head>
<body>
<div id="content">
<div class="headline">
<h1>slickAnimation.js</h1>
</div>
<div class="slick-slider">
<div class="slick-slider-init">
<div class="slick-item">
<div class="slider-headline" data-animation-in="fadeIn" data-delay-in="2" data-duration-in="2" data-animation-out="bounceOutUp" data-duration-out="2">
<h1>Headline BounceInDown</h1>
</div>
<div class="slider-description" data-animation-in="fadeIn" data-duration-in="2">
<h3>Slide 1</h3>
</div>
<div class="slider-content" data-animation-in="bounceInUp" data-duration-in="2">
<p>Nullam quis risus eget urna mollis ornare vel eu leo. Nulla vitae elit libero, a pharetra augue.
Maecenas faucibus mollis interdum. Nulla vitae elit libero, a pharetra augue. Maecenas sed diam
eget risus varius blandit.</p>
</div>
</div>
<div class="slick-item">
<div class="slider-headline" data-animation-in="bounceInDown" data-duration-in="2">
<h1>Headline FadeIn</h1>
</div>
<div class="slider-description" data-animation-in="fadeIn" data-duration-in="2">
<h3>Slide 2</h3>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="bower_components/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="bower_components/slick-carousel/slick/slick.min.js"></script>
<script type="text/javascript" src="slick-animation.js"></script>
<script type="text/javascript">
var sliderInit = $('.slick-slider-init');
$(document).ready(function () {
sliderInit.slick();
sliderInit.slickAnimation();
});
</script>
</body>
</html>