-
Notifications
You must be signed in to change notification settings - Fork 0
/
sequential_activation.html
68 lines (62 loc) · 1.31 KB
/
sequential_activation.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
<!DOCTYPE html>
<html>
<head>
<title>jQuery Plugin: Sequential Activation Loop</title>
<meta name="author" content="Ray Hyde | www.rayhyde.nl">
<style>
.lights {
}
#lights {
margin: 0 0 0 -20px;
padding: 0;
overflow: hidden;
width: 420px;
background: #000;
overflow: hidden;
padding: 20px;
}
#lights li {
float: left;
background: blue;
width: 20px;
height: 20px;
margin: 0 0 0 20px;
padding: 0;
list-style-type: none;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
background: #444;
}
#lights .active {
background: yellow;
}
</style>
</head>
<body>
<h1>Sequential activation, a jQuery plugin</h1>
<ul id="lights">
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
<p>This is the most basic page with the plugin. See <a href="http://www.rayhyde.nl/playground/sequential_activation/index.html">the plugin page for instructions.</a></p>
<script src="//code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="js/jquery.sequential-activation.min.js" type="text/javascript"></script>
<script>
$("#lights").sequentialActivation({
animationSpeed: 300,
elementToActivate: 'li',
loop: 0,
keepActive: false
});
</script>
</body>
</html>