-
Notifications
You must be signed in to change notification settings - Fork 0
/
scroll_button.css
57 lines (57 loc) · 1.15 KB
/
scroll_button.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
.progress {
background: transparent;
position: fixed;
right: 50px;
bottom: 50px;
height: 46px;
width: 46px;
cursor: pointer;
display: block;
border-radius: 50px;
box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.2);
z-index: 10000;
opacity: 0;
visibility: hidden;
transform: translateY(15px);
-webkit-transition: all 200ms linear;
transition: all 200ms linear;
}
.progress.active {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.progress::after {
position: absolute;
font-family: "Font Awesome 5 Pro";
content: "\f077";
text-align: center;
line-height: 46px;
font-size: 16px;
color: var(--bodyColor);
left: 0;
top: 0;
height: 46px;
width: 46px;
cursor: pointer;
display: block;
z-index: 1;
-webkit-transition: all 200ms linear;
transition: all 200ms linear;
}
.progress:hover::after {
position: absolute;
font-family: "Font Awesome 5 Pro";
content: "\f077";
color: var(--bodyColor);
transition: all 200ms linear;
}
.progress svg path {
fill: none;
}
.progress svg.progress-svg path {
stroke: var(--bodyColor);
stroke-width: 4;
box-sizing: border-box;
transition: all 200ms linear;
}