-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
48 lines (46 loc) · 1.47 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
<!DOCTYPE html>
<html>
<head>
<title>Carousel Application</title>
<link href="css/styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="screenSize" id="videoSlider">
<!-- change id name and passit as parameter -->
<ul id="carousel">
<li class="active">
<video controls src="res/videos/videoplayback1.mp4" preload="auto" autoplay>
Your browser does not support the video tag.
</video>
</li>
<li>
<video controls src= "res/videos/videoplayback2.mp4" preload="auto">
Your browser does not support the video tag.
</video>
</li>
<li>
<img src="res/images/image.jpg"/>
</li>
</ul>
<div onclick="movePrev()" class="prevIcon arrow"></div>
<div onclick="moveNext()" class="nextIcon arrow"></div>
</div>
</body>
<script src="js/videoSlider.min.js"></script>
<script>
/* videoSlider Init*/
var slider = new VideoSlider();
slider.init({
interval: 4000,
animateTime: 1200,
carousel : 'carousel', // passing elementId 'carousel' by default , change it if you wish in value
videoSlider : 'videoSlider' //paasing elementId 'VideoSlider' by default , change it if you wish in value
});
function movePrev(){
slider.movePrev();
}
function moveNext(){
slider.moveNext();
}
</script>
</html>