-
-
Notifications
You must be signed in to change notification settings - Fork 109
/
swap.scss
41 lines (36 loc) · 1.17 KB
/
swap.scss
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
@keyframes marp-outgoing-transition-__builtin__swap {
0% {
z-index: 1;
transform-origin: calc(var(--marp-transition-direction, 1) * 50% + 50%)
calc(var(--marp-transition-direction, 1) * 50% + 50%);
animation-timing-function: ease-in-out;
}
50% {
transform: translateY(calc(var(--marp-transition-direction, 1) * -50%))
rotate(5deg);
animation-timing-function: ease-in-out;
}
100% {
transform-origin: calc(var(--marp-transition-direction, 1) * 50% + 50%)
calc(var(--marp-transition-direction, 1) * 50% + 50%);
filter: brightness(0.5);
z-index: 0;
}
}
@keyframes marp-incoming-transition-__builtin__swap {
0% {
filter: brightness(0.75);
transform-origin: calc(var(--marp-transition-direction, 1) * -50% + 50%)
calc(var(--marp-transition-direction, 1) * -50% + 50%);
animation-timing-function: ease-in-out;
}
50% {
transform: translateY(calc(var(--marp-transition-direction, 1) * 50%))
rotate(5deg);
animation-timing-function: ease-in-out;
}
100% {
transform-origin: calc(var(--marp-transition-direction, 1) * -50% + 50%)
calc(var(--marp-transition-direction, 1) * -50% + 50%);
}
}