-
Notifications
You must be signed in to change notification settings - Fork 0
/
laxy.css
69 lines (67 loc) · 1.87 KB
/
laxy.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
/**
* Laxy - Parallax Side Menu Plugin
*
* @version 0.2.0
* @author Timo Sundvik <timo.sundvik@gmail.com>
* @copyright Copyright 2015 Timo Sundvik
* @license MIT
*/
.laxy-menu {
display: block;
width: 260px;
height: 100%;
position: fixed;
z-index: 9998;
top: 0;
bottom: 0;
overflow-y: auto;
background-color: #393939;
color: #fff;
-webkit-transition: transform 0.3s ease;
transition: transform 0.3s ease;
left: -260px;
right: auto;
}
.laxy-menu.laxy-menu-right {
right: -260px;
left: auto;
}
.laxy-menu.laxy-menu-active.laxy-menu-left {
-webkit-transform: translate3d(260px, 0, 0);
-ms-transform: translate3d(260px, 0, 0);
transform: translate3d(260px, 0, 0);
}
.laxy-menu.laxy-menu-active.laxy-menu-right {
-webkit-transform: translate3d(-260px, 0, 0);
-ms-transform: translate3d(-260px, 0, 0);
transform: translate3d(-260px, 0, 0);
}
.laxy-wrapper .laxy-push {
-webkit-transition: transform 0.3s ease;
transition: transform 0.3s ease;
}
.laxy-wrapper.laxy-menu-active.laxy-menu-left .laxy-push {
-webkit-transform: translate3d(260px, 0, 0);
-ms-transform: translate3d(260px, 0, 0);
transform: translate3d(260px, 0, 0);
}
.laxy-wrapper.laxy-menu-active.laxy-menu-left .laxy-push.laxy-push-offset {
-webkit-transform: translate3d(208px, 0, 0);
-ms-transform: translate3d(208px, 0, 0);
transform: translate3d(208px, 0, 0);
}
.laxy-wrapper.laxy-menu-active.laxy-menu-right .laxy-push {
-webkit-transform: translate3d(-260px, 0, 0);
-ms-transform: translate3d(-260px, 0, 0);
transform: translate3d(-260px, 0, 0);
}
.laxy-wrapper.laxy-menu-active.laxy-menu-right .laxy-push.laxy-push-offset {
-webkit-transition: transform 0.3s ease;
transition: transform 0.3s ease;
-webkit-transform: translate3d(-208px, 0, 0);
-ms-transform: translate3d(-208px, 0, 0);
transform: translate3d(-208px, 0, 0);
}
.laxy-noscroll {
overflow: hidden;
}