/
extend.css
61 lines (55 loc) · 951 Bytes
/
extend.css
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
html, body {
margin: 0;
padding: 0;
height: 100%;
background-color: #ff7979;
}
.container{
position: relative;
width: 100%;
height: 100%;
}
.box{
position: absolute;
width: 200px;
height: 200px;
/* border: solid 2px #4bff9e;*/
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
}
.extend{
width: 100%;
height: 100%;
}
.extend div{
float: left;
width: 40px;
height: 100%;
transform: scaleY(0);
}
.extend div:nth-child(2n){
transform-origin: top;
background-color: #d7d7fa;
}
.extend div:nth-child(2n-1){
transform-origin: bottom;
background-color: #d7fad7;
}
/****************************
* animation
****************************/
.extend div:nth-child(n){
animation : extend 1.5s linear 0.0s infinite alternate none running;
}
/****************************
* keyframes
****************************/
@keyframes extend{
0%{
transform: scaleY(0);
}
100%{
transform: scaleY(1);
}
}