-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathkeyframes.js
93 lines (80 loc) · 1.55 KB
/
keyframes.js
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
import { keyframes } from "@emotion/react";
export const fadeInUp = keyframes`
0% {
-webkit-transform: translate3d( 0, 100%, 0 );
opacity: 0;
transform: translate3d( 0, 100 %, 0 )
}
to {
-webkit-transform: translateZ( 0 );
opacity: 1;
transform: translateZ( 0 )
}`;
export const fadeInRight = keyframes`
0% {
-webkit-transform: translate3d(100%,0,0);
opacity: 0;
transform: translate3d(100%,0,0)
}
to {
-webkit-transform: translateZ(0);
opacity: 1;
transform: translateZ(0)
}`;
export const fadeInLeft = keyframes`
0% {
-webkit-transform: translate3d(-100%,0,0);
opacity: 0;
transform: translate3d(-100%,0,0)
}
to {
-webkit-transform: translateZ(0);
opacity: 1;
transform: translateZ(0)
}`;
export const fadeInDownShorter = keyframes`
from {
opacity: 0;
transform: translate(0,-50px);
transform-origin: 0 0;
}
to {
opacity: 1;
transform: none
}`;
export const fadeInDownShorter2 = keyframes`
from {
opacity: 0;
transform: translate(0,-30px);
transform-origin: 0 0;
}
to {
opacity: 1;
transform: none
}`;
export const maskRight = keyframes`{
from {
transform: translate(-100%,0)
}
to {
transform: translate(0,0)
}
}`;
export const slideInUp = keyframes`{
0% {
transform: translate3d(0, 100%, 0);
visibility: visible
}
to {
transform: translateZ(0)
}
}`;
export const slideInDown = keyframes`{
0% {
transform: translate3d(0, -100%, 0);
visibility: visible
}
to {
transform: translateZ(0)
}
}`;