Skip to content

Commit c470138

Browse files
committed
addClass: Added visual test page for animation queueing.
1 parent 08422d6 commit c470138

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>addClass Visual Test : Queue</title>
6+
<link rel="stylesheet" href="../visual.css">
7+
<link rel="stylesheet" href="../../../themes/base/jquery.ui.all.css">
8+
<script src="../../../jquery-1.4.4.js"></script>
9+
<script src="../../../ui/jquery.effects.core.js"></script>
10+
<style>
11+
.box {
12+
width: 100px;
13+
height: 100px;
14+
background-color: #000;
15+
}
16+
.red {
17+
background-color: #f00;
18+
}
19+
.green {
20+
background-color: #0f0;
21+
}
22+
.blue {
23+
background-color: #00f;
24+
}
25+
</style>
26+
<script>
27+
$(function() {
28+
$( "#box1" )
29+
.delay( 500 )
30+
.addClass( "red", 2000 )
31+
.delay( 500 )
32+
.addClass( "green", 2000 )
33+
.delay( 500 )
34+
.addClass( "blue", 2000 );
35+
$( "#box2" )
36+
.addClass( "red", 2000 )
37+
.delay( 500 )
38+
.addClass( "green", 2000 )
39+
.delay( 500 )
40+
.addClass( "blue", 2000 );
41+
});
42+
</script>
43+
</head>
44+
<body>
45+
46+
<div id="box1" class="box"></div>
47+
<div id="box2" class="box"></div>
48+
49+
</body>
50+
</html>

0 commit comments

Comments
 (0)