-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathdemo2.scss
executable file
·89 lines (76 loc) · 1.31 KB
/
demo2.scss
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
body {
background-color: #2598B8;
overflow: hidden;
}
.container {
text-align: center;
}
.path-slider {
position: relative;
display: inline-block;
margin-top: 7%;
}
path {
stroke-width: 1px;
stroke: none;
fill: none;
}
.icon__path {
fill: #FFFFFF;
}
.path-slider__path-drawn {
stroke: rgba(255, 255, 255, 0.5);
}
.item__icon {
width: 45px;
height: 45px;
position: relative;
top: 50%;
transform: translateY(-50%);
}
.path-slider__item {
position: absolute;
left: -37px;
top: -37px;
cursor: pointer;
text-decoration: none;
outline: none;
&:hover, &:focus {
.item__circle {
background-color: darken(#1D7891, 5%);
}
}
}
.item__circle {
display: inline-block;
width: 74px;
height: 74px;
background-color: #2189A5;
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
border-radius: 100%;
transition: 1s background;
}
.item__title {
position: absolute;
top: 150%;
left: 50%;
transform: translateX(-50%);
color: #FFFFFF;
font-size: 25px;
font-variant: small-caps;
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition: 0.5s;
}
.path-slider__current-item {
.item__circle {
background-color: #1D7891;
transition: 1s 0.5s background;
}
.item__title {
opacity: 1;
pointer-events: auto;
transition: 0.5s 1s;
}
}