-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtransition.css
69 lines (56 loc) · 1.24 KB
/
transition.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
.curtain-enter-active,
.curtain-leave-active {
transition: clip-path 0.3s ease-in-out;
}
.curtain-enter-from,
.curtain-leave-to {
clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}
.curtain-enter-to,
.curtain-leave-from {
clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}
.slideLeft-enter-active,
.slideLeft-leave-active {
transition: clip-path 0.3s ease-in-out;
}
.slideLeft-enter-from,
.slideLeft-leave-to {
clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
}
.slideLeft-enter-to,
.slideLeft-leave-from {
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.slideRight-enter-active,
.slideRight-leave-active {
transition: clip-path 0.3s ease-in-out;
}
.slideRight-enter-from,
.slideRight-leave-to {
clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
}
.slideRight-enter-to,
.slideRight-leave-from {
clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.fade-enter-active,
.fade-leave-active {
transition: all 0.3s ease-in-out;
}
.fade-enter-from,
.fade-leave-to {
opacity: 0;
}
.zoom-enter-active,
.zoom-leave-active {
transition: transform 0.3s ease-in-out;
}
.zoom-enter-from,
.zoom-leave-to {
transform: scale(0) translate(-50%, -50%);
}
.zoom-enter-to,
.zoom-leave-from {
transform: scale(1) translate(-50%, -50%);
}