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
·191 lines (171 loc) · 2.66 KB
/
style.css
File metadata and controls
executable file
·191 lines (171 loc) · 2.66 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
body{
margin: 0;
}
.box{
float: left;
height:25vh;
width:25vh;
margin: 5px;
/*display:inline-block;*/
background-color: skyblue;
}
.spin {
animation-name: spin;
animation-duration: 4s;
animation-iteration-count: infinite;
animation-direction: reverse;
}
.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;
}
.pullUp{
animation: pullUp 5s infinite;
transform-origin: 50% 100%;
}
.pullUp2 {
animation: pullUp2 5s infinite;
transform-origin: 50% 100%;
}
#translate:active{
transform: rotate(45deg);
}
#translate:hover{
animation-name: move-it;
animation-duration: 10s;
animation-direction: reverse;
}
@keyframes spin {
100%{
transform: rotate(360deg);
}
}
@keyframes move-it {
99%{
transform: translate(50vw);
}
}
@keyframes pulse {
0%, 100% {
background-color: blue;
}
50% {
background-color: red;
}
}
@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 pullUp {
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);
}
}
@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);
}*/
}
/** {
overflow: hidden;
margin: 0;
}*/
/*Jen's animation---------------------------*/
@keyframes circle {
from {
transform: scale(0)
}
to {
transform: scale(3)
}
}
.circle {
margin: 300px;
width: 100px;
height: 100px;
border: 10px solid yellow;
border-radius: 50%;
position: absolute;
top: 5%;
left: 40%;
}
.one {
animation: circle 8s infinite linear;
}
.two {
animation: circle 7s infinite linear;
}
.three {
animation: circle 6s infinite linear;
}
/*Jen's animation---------------------------*/