-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathScroll.less
46 lines (43 loc) · 1.01 KB
/
Scroll.less
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
.scroll-wrap {
overflow: hidden;
width: 100%;
height: 100%;
line-height: 0;
position: relative
}
.scroll-horizontal {
&-inner {
min-width: 100%;
height: 100%;
line-height: 0;
display: table-cell;
white-space: nowrap; // transition: transform 300ms cubic-bezier(0.1, 0.57, 0.1, 1) 0ms;
transition-timing-function: cubic-bezier(0.1, 0.57, 0.1, 1); // transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
transition-duration: 0ms;
transform: translate(0px, 0px) translateZ(0px);
backface-visibility: hidden;
position: relative;
z-index: 2;
}
&-item {
display: inline-block;
;
}
}
.scroll-vertical {
&-inner {
width: 100%;
min-height: 100%; // overflow-y: scroll;
transition: transform 300ms cubic-bezier(0.1, 0.57, 0.1, 1) 0ms;
transform: translate(0px, 0px) translateZ(0px);
backface-visibility: hidden;
position: relative;
}
}
.scroll-shadow {
position: absolute;
right: 0;
top: 0;
height: 100%;
z-index: 1;
}