-
Notifications
You must be signed in to change notification settings - Fork 0
/
example2.html
69 lines (64 loc) · 2.09 KB
/
example2.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
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="JQuery Background Slideshow">
<meta name="keywords" content="JQuery, background">
<meta name="creator" content="Sunil Samuel">
<meta name="copyright" content="Sunil Samuel">
<meta name="version" content="$LastChangedRevision: 1122 $">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="../src/js/jquery-bg-slideshow.js"></script>
<link rel="stylesheet" href="../src/css/jquery-bg-slideshow.css">
<script type="text/javascript">
$(function() {
$(".bg").bgSlideShow({
current : 1,
randomize : true
});
});
</script>
<style type="text/css">
body {
text-align: center;
}
.bg {
height: 300px;
width: 100%;
border: 1px solid rgb(200, 200, 200);
background-color: white;
color: white;
font-size: 30pt;
align-items: center;
justify-content: center;
display: flex;
text-align: center;
text-shadow: 1px 1px 10px black;
margin: 0;
border-radius: 50vh;
box-shadow: 3px 3px 17px 2px #716464;
}
.jquery-bg-slideshow-wrap-bg-element {
width: 40%;
height: 300px;
display: inline-block;
}
</style>
<title>JQuery Background Slideshow Example 2 (Multiple Elements)</title>
</head>
<body>
<div style="height: 30px;">This is an example that show two
different elements that have background images changing in different
speed</div>
<div class='bg' data-images="gfx/bar.jpg,gfx/clouds.jpg,gfx/swirls.jpg"
data-transitionDelay="5000" data-initialBackground="2">Some data
for widget one</div>
<div class='bg' data-images="gfx/bar.jpg,gfx/clouds.jpg,gfx/swirls.jpg"
data-debug="false" data-transitionDelay="7000" data-initialBackground="random"
data-transitionSpeed="3000">Some data for widget two</div>
<div style="height: 30px;">This is a div after the background div
to show that this plugin does not impact any elements after it</div>
</body>
</html>