forked from vitalyrotari/ionic-ion-drawer
-
Notifications
You must be signed in to change notification settings - Fork 8
/
ionic.contrib.drawer.css
45 lines (40 loc) · 919 Bytes
/
ionic.contrib.drawer.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
drawer {
display: block;
position: fixed;
width: 270px;
height: 100%;
z-index: 100;
background: #ffffff;
}
drawer.animate {
-webkit-transition: -webkit-transform 0.4s ease-in-out;
transition: transform 0.4s ease-in-out;
}
drawer.left {
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
box-shadow: 1px 0px 10px rgba(0,0,0,0.3);
}
drawer.right {
right: 0;
top: 0;
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
box-shadow: -1px 0px 10px rgba(0,0,0,0.3);
}
.drawer-overlay {
background-color: rgba(0, 0, 0, 0.6);
opacity: 0;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 99;
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
}
.drawer-overlay.animate {
-webkit-transition: 0.4s opacity ease-in-out;
transition: 0.4s opacity ease-in-out;
}