-
Notifications
You must be signed in to change notification settings - Fork 0
/
animation.css
163 lines (146 loc) · 3.36 KB
/
animation.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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
html {
}
body {
background-image: url("bg_tile.png");
margin: 100px;
}
div {
width: 680px;
height: 141px;
}
.row {
-moz-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
-webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
background-color: #8B8B8B;
width: 680px;
height: 141px;
position: relative;
margin-bottom: 10px;
}
.red {
background: #e8a4a4;
width: 1%;
animation: animationScaleRed ease-in-out 0.45s;
animation-iteration-count: 1;
transform-origin: 50% 50%;
animation-fill-mode:forwards; /*when the spec is finished*/
-webkit-animation: animationScaleRed ease-in-out 0.45s;
-webkit-animation-iteration-count: 1;
-webkit-transform-origin: 50% 50%;
-webkit-animation-fill-mode:forwards; /*Chrome 16+, Safari 4+*/
}
@keyframes animationScaleRed{
0% {
transform: scaleX(0.10) ;
}
40% {
transform: scaleX(4.35) ;
}
100% {
transform: scaleX(1.00) ;
}
}
@-webkit-keyframes animationScaleRed {
0% {
-webkit-transform: scaleX(0.10) ;
}
40% {
-webkit-transform: scaleX(4.35) ;
}
100% {
-webkit-transform: scaleX(1.00) ;
}
}
.green {
background: #bbf1b3;
width: 1%;
animation: animationScaleGreen ease-in-out 0.45s;
animation-iteration-count: 1;
transform-origin: 50% 50%;
animation-fill-mode:forwards; /*when the spec is finished*/
-webkit-animation: animationScaleGreen ease-in-out 0.45s;
-webkit-animation-iteration-count: 1;
-webkit-transform-origin: 50% 50%;
-webkit-animation-fill-mode:forwards; /*Chrome 16+, Safari 4+*/
}
@keyframes animationScaleGreen{
0% {
transform: scaleX(0.10) ;
}
40% {
transform: scaleX(4.35) ;
}
100% {
transform: scaleX(1.00) ;
}
}
@-webkit-keyframes animationScaleGreen {
0% {
-webkit-transform: scaleX(0.10) ;
}
40% {
-webkit-transform: scaleX(4.35) ;
}
100% {
-webkit-transform: scaleX(1.00) ;
}
}
.wrappergreen {
position: absolute;
width: 100%;
height: 100%;
animation: animationMoveGreenWrapper ease-out 0.45s;
animation-iteration-count: 1;
transform-origin: 50% 50%;
animation-fill-mode:forwards; /*when the spec is finished*/
-webkit-animation: animationMoveGreenWrapper ease-out 0.45s;
-webkit-animation-iteration-count: 1;
-webkit-transform-origin: 50% 50%;
-webkit-animation-fill-mode:forwards; /*Chrome 16+, Safari 4+*/
}
@keyframes animationMoveGreenWrapper{
0% {
transform: translate(0px,0px) ;
}
100% {
transform: translate(99%,0px) ;
}
}
@-webkit-keyframes animationMoveGreenWrapper {
0% {
-webkit-transform: translate(0px,0px) ;
}
100% {
-webkit-transform: translate(99%,0px) ;
}
}
.wrapperred {
position: absolute;
width: 100%;
height: 100%;
animation: animationMoveRedWrapper ease-out 0.45s;
animation-iteration-count: 1;
transform-origin: 50% 50%;
animation-fill-mode:forwards; /*when the spec is finished*/
-webkit-animation: animationMoveRedWrapper ease-out 0.45s;
-webkit-animation-iteration-count: 1;
-webkit-transform-origin: 50% 50%;
-webkit-animation-fill-mode:forwards; /*Chrome 16+, Safari 4+*/
}
@keyframes animationMoveRedWrapper{
0% {
transform: translate(99%,0px) ;
}
100% {
transform: translate(0px,0px) ;
}
}
@-webkit-keyframes animationMoveRedWrapper {
0% {
-webkit-transform: translate(99%,0px) ;
}
100% {
-webkit-transform: translate(0px,0px) ;
}
}