-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathslider.html
130 lines (129 loc) · 3.76 KB
/
slider.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Responsive Web Slider - Marmik Desai</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="marmik desai">
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<link href="http://cdnjs.cloudflare.com/ajax/libs/animate.css/3.1.0/animate.min.css" rel="stylesheet">
<link rel="stylesheet" href="http://ixisio.github.io/bootstrap-touch-carousel/css/bootstrap-touch-carousel.css">
<style>
.carousel-inner .item{
-webkit-transition: all 2.8s cubic-bezier(0.075, 0.082, 0.165, 1);
-moz-transition:all 2.8s cubic-bezier(0.075, 0.082, 0.165, 1);
-o-transition:all 2.8s cubic-bezier(0.075, 0.082, 0.165, 1);
-ms-transition:all 2.8s cubic-bezier(0.075, 0.082, 0.165, 1);
transition:all 2.8s cubic-bezier(0.075, 0.082, 0.165, 1);
}
.animated {
-webkit-animation-duration: 2s;
animation-duration: 2s;
}
@media screen and (max-width: 767px){
.carousel-caption{
display:block;
}
}
</style>
</head>
<body>
<div id="slider" class="carousel slide" data-ride="carousel">
<div class="carousel-inner">
<div class="item active" id="image_1">
<img src="banner1.jpg" alt="" />
<div class="carousel-caption">
<h1 data-animate="rollIn">
Marmik Desai
</h1>
<p class="text-info" data-animate="bounceInUp">
These is responsive slider example
<span class="label label-important">
HTML5, CSS3
</span>
</p>
<a class="btn btn-large btn-primary" href="http://marmikdesai.github.io/" data-animate="bounceInLeft">
Marmik Desai
</a>
</div>
</div>
<div class="item" id="image_2">
<img src="banner2.jpg" alt="" />
<div class="carousel-caption">
<h1 data-animate="tada">
Marmik Desai
</h1>
<p data-animate="fadeInDownBig">
Mamu
</p>
<a href="#" data-animate="swing">
Front End Developer
</a>
</div>
</div>
<div class="item" id="image_3">
<img src="banner3.jpg" alt="" />
<div class="carousel-caption">
<h1 data-animate="wobble">
Web Design & Usability
</h1>
<p class="lead" data-animate="wobble">
User Experience, User Interface Design
</p>
<a class="btn btn-large btn-warning" href="http://marmikdesai.github.io/">
Learn more
</a>
</div>
</div>
<div class="item" id="image_4">
<img src="banner4.jpg" alt="" />
<div class="carousel-caption">
<h1 data-animate="swing">
Front End Developer
</h1>
<p class="lead" data-animate="wobble">
JavaScript, Jquery, Ajax
</p>
<a class="btn btn-large btn-warning" href="http://marmikdesai.github.io/">
Learn more
</a>
</div>
</div>
<div class="item" id="image_5">
<img src="banner5.jpg" alt="" />
<div class="carousel-caption">
<h1 data-animate="swing">
Say Hi...
</h1>
<a class="btn btn-large btn-warning" href="http://marmikdesai.github.io/">
Learn more
</a>
</div>
</div>
</div>
<a class="left carousel-control" href="#slider" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#slider" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script src="http://ixisio.github.io/bootstrap-touch-carousel/js/bootstrap-touch-carousel.js"></script>
<script src="responsive_slider.js"></script>
<script>
$(document).ready(function() {
function isTouchDevice(){
return typeof window.ontouchstart !== 'undefined';
}
if(isTouchDevice() == true){
img();
} else{
$('#slider').animat({
});
}
});
</script>
</body>
</html>