-
-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy pathswipe.scss
70 lines (61 loc) · 1.54 KB
/
swipe.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
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
:root {
--bespoke-marp-transition-swipe-shadow: 6px 6px 10px 6px rgba(0, 0, 0, 25%);
}
// [Safari CSS hack]
// In Safari, applying shadow causes a rendering issue
_::-webkit-full-page-media,
_:future,
:root {
--bespoke-marp-transition-swipe-shadow: none;
}
@keyframes marp-outgoing-transition-__builtin__swipe {
0% {
animation-timing-function: ease-in;
box-shadow: var(--bespoke-marp-transition-swipe-shadow);
transform: none;
transform-origin: 100% 100%;
z-index: 1;
}
100% {
box-shadow: var(--bespoke-marp-transition-swipe-shadow);
transform: translate(calc(-100vw - 30px), -30vh) rotate(-30deg);
transform-origin: 100% 100%;
z-index: 1;
}
}
@keyframes marp-incoming-transition-__builtin__swipe {
0% {
animation-timing-function: ease-in-out;
filter: brightness(0.5);
transform: scale(0.95);
}
100% {
filter: none;
transform: scale(1);
}
}
@keyframes marp-outgoing-transition-backward-__builtin__swipe {
0% {
transform: none;
animation-timing-function: ease-in-out;
}
100% {
filter: brightness(0.5);
transform: scale(0.95);
}
}
@keyframes marp-incoming-transition-backward-__builtin__swipe {
0% {
animation-timing-function: ease-out;
box-shadow: var(--bespoke-marp-transition-swipe-shadow);
transform: translate(calc(-100vw - 30px), 30vh) rotate(30deg);
transform-origin: 100% 0%;
z-index: 1;
}
100% {
box-shadow: var(--bespoke-marp-transition-swipe-shadow);
transform: none;
transform-origin: 100% 0%;
z-index: 1;
}
}