-
Notifications
You must be signed in to change notification settings - Fork 37
/
Layer.css
72 lines (59 loc) · 920 Bytes
/
Layer.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
70
71
72
.LayerRoot {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
background-color: #fff;
}
.fadeEnter {
opacity: 0.01;
&.fadeEnterActive {
opacity: 1;
transition: opacity 0.2s ease-in;
}
}
.fadeLeave {
opacity: 1;
&.fadeLeaveActive {
opacity: 0.01;
transition: opacity 0.2s ease-in;
}
}
.slideEnter {
top: 100%;
&.slideEnterActive {
top: 0%;
transition: top 0.3s ease-in;
}
}
.slideLeave {
top: 0%;
&.slideLeaveActive {
top: 100%;
transition: top 0.3s ease-in;
}
}
.olayEnter {
opacity: 0.01;
&.olayEnterActive {
opacity: 1;
transition: opacity 0.1s linear;
}
}
.olayLeave {
opacity: 1;
&.olayLeaveActive {
opacity: 0.01;
transition: opacity 0.4s linear;
}
}
.overlay {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
background-color: rgba(0 0 0 / 50%);
}