-
Notifications
You must be signed in to change notification settings - Fork 1
/
demo.html
90 lines (74 loc) · 1.83 KB
/
demo.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
<!doctype html>
<html>
<head>
<title>jQuery Transitions demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style>
#list-of-tiles {
margin: 1em auto;
padding: 0;
max-width: 225px;
min-height: 45px;
overflow: hidden;
}
#list-of-tiles li {
float: left;
height: 40px;
width: 40px;
overflow: hidden;
margin: 0 5px 5px 0;
background: #f90;
color: #fff;
font: 36px/1 serif;
line-height: 40px;
text-align: center;
cursor: pointer;
display: none;
}
#list-of-tiles li:nth-child(2n) {
background: #009;
}
#list-of-tiles li:nth-child(3n) {
background: #3f0;
}
#list-of-tiles li:nth-child(4n) {
background: #c09;
}
#list-of-tiles li:nth-child(5n) {
background: #09f;
}
#list-of-tiles li:hover {
background: gray;
}
#list-of-tiles li:active {
background: #000;
}
#tile-count {
font-family: monospace;
}
</style>
</head>
<body>
<h1>jQuery Transitions demo</h1>
<p>
Choose a tile count and click "Start" to see a tiling effect using a recursive callback
</p>
<div>
<form id="tile-control">
<select id="tile-count">
<option selected="selected">Tile count:</option>
<option value="5"> 5 tiles</option>
<option value="10">10 tiles</option>
<option value="20">20 tiles</option>
<option value="50">50 tiles</option>
</select>
<input id="tile-button" type="submit" value="Start" />
</form>
<ul id="list-of-tiles">
</ul>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
<script src="cb.transition.js"></script>
<script src="demo.js"></script>
</body>
</html>