-
Notifications
You must be signed in to change notification settings - Fork 10
/
locomotive-scroll.css
77 lines (68 loc) · 1.38 KB
/
locomotive-scroll.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
73
74
75
76
77
/*! locomotive-scroll v3.5.4 | MIT License | https://github.com/locomotivemtl/locomotive-scroll */
html.has-scroll-smooth {
overflow: hidden;
z-index: 2;
}
html.has-scroll-dragging {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
z-index: 2;
}
.has-scroll-smooth body {
overflow: hidden;
z-index: 2;
}
.has-scroll-smooth [data-scroll-container] {
min-height: 100vh;
z-index: 2;
}
.c-scrollbar {
position: absolute;
right: 0;
top: 0;
width: 11px;
height: 100vh;
transform-origin: center right;
transition: transform 0.3s, opacity 0.3s;
opacity: 0;
z-index: 2;
}
.c-scrollbar:hover {
transform: scaleX(1.45);
z-index: 2;
}
.c-scrollbar:hover,
.has-scroll-scrolling .c-scrollbar,
.has-scroll-dragging .c-scrollbar {
opacity: 1;
z-index: 2;
}
.c-scrollbar_thumb {
position: absolute;
top: 0;
right: 0;
background: hsl(256, 44%, 50%);
opacity: 0.8;
width: 7px;
border-radius: 999px;
margin: 2px;
cursor: -webkit-grab;
cursor: grab;
z-index: 2;
}
.has-scroll-dragging .c-scrollbar_thumb {
cursor: -webkit-grabbing;
cursor: grabbing;
}
.reveal {
position: relative;
transform: translate(0, 150px);
opacity: 0;
transition: all 2s ease;
}
.reveal.active {
transform: translate(0, 0px);
opacity: 1;
}