PageTransition.scss
1.04 KB
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
@keyframes page-initial-bottom {
0%{
opacity: 1;
background-color: white;
}
100%{
opacity: 0;
background-color: white;
}
}
@keyframes page-blink-bottom {
0%{
opacity: 0;
top: 50%;
left: 50%
}
40%{
opacity: 1;
left: 50%;
}
50%{
left: 50%;
}
100%{
opacity: 1;
left: -70%;
}
}
@keyframes page-top-left {
0%{
left: 50%;
top: 170%;
}
50%{
top: 50%;
left: 50%;
}
100%{
top: 50%;
left: -70%;
}
}
.page-transition {
width : 120%;
height: 120%;
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
background-color: #353535;
z-index: 1;
display: none;
&.transition-0 {
animation: ease-in-out 1.2s page-initial-bottom;
}
&.transition-1 {
animation: ease-in-out 2.4s page-blink-bottom;
}
&.transition-2 {
animation: ease-in-out 2.4s page-top-left;
}
}