Skip to content

Commit 4e628f6

Browse files
authored
Create easyScrollDots.scss
1 parent 0bcc21f commit 4e628f6

File tree

1 file changed

+92
-0
lines changed

1 file changed

+92
-0
lines changed

dist/SCSS/easyScrollDots.scss

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
/* Easy Scroll Dots 2.0.0 --- https://github.com/Superhands89/EasyScrollDots
2+
* Quickly add anchor points throughout your web page/application and have navigational dots automatically appear
3+
* in a fixed position on the side of the page. This allows the user to click to scroll though sections of the page,
4+
* and it updates as they scroll.
5+
*
6+
* By Superhands89 2019-2022 --- https://github.com/Superhands89/
7+
*
8+
* GPLv3 Licence for open source use only
9+
* or purchase a Single Commercial License at https://gum.co/TdtEX
10+
* or purchase an Extended Commercial License at https://gum.co/NGfmlw
11+
*/
12+
.scroll-indicator-controller {
13+
position: fixed;
14+
top: 50vh;
15+
transform: translate(0, -50%);
16+
right: 10px;
17+
z-index: 999;
18+
19+
&.indi-mobile > div span {
20+
display: none;
21+
}
22+
23+
@media (min-width: 1025px) {
24+
right: 20px;
25+
}
26+
27+
> div {
28+
width: 20px;
29+
height: 20px;
30+
position: relative;
31+
border-radius: 50%;
32+
border: 1px solid tomato;
33+
background: rgba(0, 0, 0, 0.25);
34+
margin: 0 0 10px 0;
35+
cursor: pointer;
36+
transition: background 0.4s ease;
37+
will-change: transition;
38+
39+
span {
40+
color: tomato;
41+
position: absolute;
42+
right: ~"calc(100% + 8px)";
43+
white-space: nowrap;
44+
top: 50%;
45+
font-family: arial, sans-serif;
46+
font-size: 16px;
47+
line-height: 17px;
48+
width: 0;
49+
overflow: hidden;
50+
opacity: 0;
51+
transform: translateY(-50%) translateX(10px);
52+
transition: all 0.4s ease;
53+
will-change: transition;
54+
55+
@media (hover: none) {
56+
display: none;
57+
}
58+
59+
&:after {
60+
content: "-----";
61+
padding-left: 5px;
62+
letter-spacing: -2px;
63+
font-family: arial, sans-serif;
64+
vertical-align: text-top;
65+
line-height: 14px;
66+
}
67+
}
68+
69+
@media (hover: hover), (-ms-high-contrast: none), (-ms-high-contrast: active) {
70+
&:hover {
71+
72+
span {
73+
width: auto;
74+
opacity: 1;
75+
overflow: visible;
76+
transform: translateY(-50%) translateX(0px);
77+
}
78+
}
79+
}
80+
81+
&.active {
82+
background: tomato;
83+
border-color: rgba(0, 0, 0, 0.25);
84+
}
85+
}
86+
}
87+
// old edge version 18 and below
88+
@supports (-ms-ime-align:auto) {
89+
.scroll-indicator-controller > div span {
90+
transition: opacity 0.4s ease;
91+
}
92+
}

0 commit comments

Comments
 (0)