forked from tobiasahlin/SpinKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path9-cube-grid.html
63 lines (56 loc) · 1.75 KB
/
9-cube-grid.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
<html>
<head>
<title>Cube grid</title>
<style>
.spinner {
width:30px;
height:30px;
margin:100px auto;
}
.cube {
width:33%;
height:33%;
background:#333;
float:left;
-webkit-animation: scaleDelay 1.3s infinite ease-in-out;
animation: scaleDelay 1.3s infinite ease-in-out;
}
/*
* Spinner positions
* 1 2 3
* 4 5 6
* 7 8 9
*/
.spinner .cube:nth-child(1) { -webkit-animation-delay: 0.2s }
.spinner .cube:nth-child(2) { -webkit-animation-delay: 0.3s }
.spinner .cube:nth-child(3) { -webkit-animation-delay: 0.4s }
.spinner .cube:nth-child(4) { -webkit-animation-delay: 0.1s }
.spinner .cube:nth-child(5) { -webkit-animation-delay: 0.2s }
.spinner .cube:nth-child(6) { -webkit-animation-delay: 0.3s }
.spinner .cube:nth-child(7) { -webkit-animation-delay: 0.0s }
.spinner .cube:nth-child(8) { -webkit-animation-delay: 0.1s }
.spinner .cube:nth-child(9) { -webkit-animation-delay: 0.2s }
@-webkit-keyframes scaleDelay {
0%, 70%, 100% { -webkit-transform:scale3D(1.0, 1.0, 1.0) }
35% { -webkit-transform:scale3D(0.0, 0.0, 1.0) }
}
@keyframes scaleDelay {
0%, 70%, 100% { -webkit-transform:scale3D(1.0, 1.0, 1.0); transform:scale3D(1.0, 1.0, 1.0) }
35% { -webkit-transform:scale3D(1.0, 1.0, 1.0); transform:scale3D(0.0, 0.0, 1.0) }
}
</style>
</head>
<body>
<div class="spinner">
<div class="cube"></div>
<div class="cube"></div>
<div class="cube"></div>
<div class="cube"></div>
<div class="cube"></div>
<div class="cube"></div>
<div class="cube"></div>
<div class="cube"></div>
<div class="cube"></div>
</div>
</body>
</html>