forked from Prinzhorn/skrollr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
skrollr.css
51 lines (44 loc) · 995 Bytes
/
skrollr.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
html, body {
width:100%;
height:100%;
padding:0;
margin:0;
overflow-x:hidden;
}
.skrollable {
/*
* First-level skrollables are positioned relative to window
*/
position:fixed;
/*
* Skrollables by default have a z-index of 100 in order to make it easy to position elements in front/back without changing each skrollable
*/
z-index:100;
transition: all .3s;
/*-o-transition: all .3s;*/
-ms-transition: all .3s;
-moz-transition: all .3s;
-webkit-transition: all .3s;
}
.skrollable.notransition, .notransition .skrollable {
transition: none;
-o-transition: none;
-ms-transition: none;
-moz-transition: none;
-webkit-transition: none;
}
.skrollable.hidden {
display:none !important;
}
.skrollable .skrollable {
/*
* Second-level skrollables are positioned relative their parent skrollable
*/
position:absolute;
}
.skrollable .skrollable .skrollable {
/*
* Third-level (and below) skrollables are positioned static
*/
position:static;
}