-
Notifications
You must be signed in to change notification settings - Fork 16k
Expand file tree
/
Copy pathfallOut.css
More file actions
42 lines (36 loc) · 1.25 KB
/
fallOut.css
File metadata and controls
42 lines (36 loc) · 1.25 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
@-webkit-keyframes fallOut {
0% {
-webkit-transform: perspective(500px) translate3d(0, 0, 0) rotate3d(1, 4, 0.5, 0deg);
transform: perspective(500px) translate3d(0, 0, 0) rotate3d(1, 4, 0.5, 0deg);
}
80% {
opacity: 1;
}
to {
opacity: 0;
-webkit-transform: perspective(500px) translate3d(-20%, -20%, 180px) rotate3d(1, 4, 0.5, -8deg);
transform: perspective(500px) translate3d(-20%, -20%, 180px) rotate3d(1, 4, 0.5, -8deg);
}
}
@keyframes fallOut {
0% {
-webkit-transform: perspective(500px) translate3d(0, 0, 0) rotate3d(1, 4, 0.5, 0deg);
transform: perspective(500px) translate3d(0, 0, 0) rotate3d(1, 4, 0.5, 0deg);
}
80% {
opacity: 1;
}
to {
opacity: 0;
-webkit-transform: perspective(500px) translate3d(-20%, -20%, 180px) rotate3d(1, 4, 0.5, -8deg);
transform: perspective(500px) translate3d(-20%, -20%, 180px) rotate3d(1, 4, 0.5, -8deg);
}
}
.animate__fallOut {
-webkit-animation-name: fallOut;
animation-name: fallOut;
-webkit-animation-duration: 2s;
animation-duration: 2s;
-webkit-animation-timing-function: cubic-bezier(.14, .57, .72, 1);
animation-timing-function: cubic-bezier(.14, .57, .72, 1);
}