-
Notifications
You must be signed in to change notification settings - Fork 6
/
turn.css
49 lines (41 loc) · 901 Bytes
/
turn.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
[data-turn-exit],
[data-turn-enter] {
animation-timing-function: cubic-bezier(0.65, 0.05, 0.35, 1);
animation-fill-mode: forwards;
}
html.turn-advance.turn-exit [data-turn-exit] {
animation-name: fade-out-up;
animation-duration: .3s;
}
html.turn-advance.turn-enter [data-turn-enter] {
animation-name: fade-in-up;
animation-duration: .6s;
}
html.turn-advance.turn-before-transition [data-turn-exit],
html.turn-advance.turn-transition [data-turn-exit] {
opacity: 0;
}
html.turn-before-exit [data-turn-exit],
html.turn-exit [data-turn-exit] {
will-change: transform, opacity;
}
@keyframes fade-out-up {
0% {
opacity: 1;
transform: translateZ(0)
}
100% {
opacity: 0;
transform: translate3d(0, -4rem, 0)
}
}
@keyframes fade-in-up {
0% {
opacity: 0;
transform: translate3d(0, 4rem, 0)
}
100% {
opacity: 1;
transform: translateZ(0)
}
}