forked from m-danish-iqbal/section-scroll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
section-scroll.css
99 lines (88 loc) · 1.79 KB
/
section-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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
.bullets-container {
display: table;
position: fixed;
right: 0;
height: 100%;
z-index: 1049;
font-weight: normal;
}
.section-bullets {
transition-duration: .3s;
list-style: none;
margin: 0;
display: table-cell;
vertical-align: middle;
}
.section-bullets li {
display: block;
text-align: right;
font-size: 13px;
text-transform: uppercase;
line-height: 1;
position: relative;
border-top-left-radius: 30px;
border-bottom-left-radius: 30px;
cursor: pointer;
margin-bottom: 1px;
}
.section-bullets li a:before {
content: ' ';
width: 0;
height: 100%;
background-color: #eee;
position: absolute;
right: 0;
top: 0;
border-top-left-radius: 30px;
border-bottom-left-radius: 30px;
transition-duration: .1s;
}
.section-bullets li a:after {
content: ' ';
width: 6px;
height: 6px;
border-radius: 50%;
background-color: #000;
position: absolute;
right: 8px;
top: 8px;
transition-duration: .2s;
}
.section-bullets li a {
color: #000;
overflow: hidden;
position: relative;
display: inline-block;
transition-duration: .3s;
opacity: 0.5;
margin-left: 5px;
padding: 5px 20px 5px 10px;
text-decoration: none;
min-height: 11px;
}
.section-bullets li span {
position: relative;
right: 0;
transition-duration: 0.3s;
opacity: 0;
}
.section-bullets li.active a {
opacity: 1;
}
.section-bullets li.active a:before {
width: 100%;
transition-duration: .3s;
transition-delay: 0.5s;
}
.section-bullets li:hover a {
opacity: 1;
}
.section-bullets li:hover span {
opacity: 1;
transition-delay: 0.1s;
}
.section-bullets li.active span {
opacity: 1;
transition-duration: .3s;
transition-delay: 0.6s;
}