forked from Montana-Code-School/CSS-Animation-Sampler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
executable file
·193 lines (164 loc) · 2.75 KB
/
style.css
File metadata and controls
executable file
·193 lines (164 loc) · 2.75 KB
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
body{
margin: 0;
}
.box{
float: left;
height:25vh;
width:25vh;
border-radius: 10%;
margin: 5px;
display:inline-block;
background-color: skyblue;
}
.spin-grow:hover {
/*animation-name: spin;*/
/*animation-duration: 4s;
animation-iteration-count: infinite;
animation-direction:alternate;*/
animation: spin-grow 5s infinite;
}
.move {
animation-name: move-it;
animation-duration: 5s;
animation-iteration-count: infinite;
}
.pulse {
animation: pulse 10s infinite;
}
.fade {
animation: fade 10s infinite;
}
.move-2{
animation: move-2 10s 5s infinite;
}
.grow{
animation: grow 5s infinite;
}
.shrink{
animation: shrink 5s infinite;
}
.spectrum{
animation: spectrum 10s infinite;
}
.pullUp2 {
animation: pullUp2 15s infinite;
}
.pulse-move-grow{
animation-name: pulse-move-grow;
animation-duration: 10s;
animation-iteration-count: infinite;
animation-direction: normal;
border-radius: 100%
}
#translate:active{
transform: rotate(45deg);
}
#translate:hover{
animation-name: move-it;
animation-duration: 10s;
animation-direction: reverse;
}
@keyframes pulse-move-grow {
0%,100% {
transform:
rotate(0deg)
translate(-150px)
rotate(0deg)
scale(1,1);
background-color:red;
}
50% {
transform: rotate(360deg)
translate(-150px)
rotate(-360deg)
scale(2,2);
background-color:purple;
}
}
@keyframes spin {
100%{
transform: rotate(360deg);
}
}
@keyframes spin-grow {
100%{
transform: rotate(360deg) scale(2,2);
}
}
@keyframes move-it {
99%{
transform: translate(50vw);
}
}
@keyframes pulse {
0%, 100% {
background-color: red;
}
50% {
background-color: purple;
}
}
@keyframes fade {
100% {
opacity: 0;
}
}
@keyframes move-2 {
50%{
transform: translate(-50vw, 50vh);
}
}
@keyframes grow {
50%{
transform: scale(2,2);
}
}
@keyframes shrink {
50%{
transform: scale(0,0);
}
}
/* http://www.justinaguilar.com/animations/ */
@keyframes spectrum {
0% {
background-color:red;
}
20% {
background-color:orange;
}
40% {
background-color:yellow;
}
60% {
background-color:green;
}
80% {
background-color:blue;
}
100% {
background-color:purple;
}
}
@keyframes pullUp2 {
0% {
transform: scaleY(0.1);
}
40% {
transform: scaleY(1.02);
}
60% {
transform: scaleY(0.98);
}
80% {
transform: scaleY(1.01);
}
100% {
transform: scaleY(0.98);
}
/*80% {
transform: scaleY(1.01);
}
100% {
transform: scaleY(1);
}*/
}