-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTabelle.css
55 lines (44 loc) · 1.08 KB
/
Tabelle.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
$pathNumber: 18;
// The color that will be at the beginning and the end of the loop.
$firstColor: white;
// The list of all the used colors. You can add or remove colors, the animation stays fluid. The $first-color must remain at the end of the list though.
$listColors: #F11E4A, #F8A527, white, white, $firstColor;
$delayCoeff: 0.1s;
body {
background-color: #0057B8;
text-align: center;
line-height: 100vh;
}
.svg {
display: inline-block;
height: 200px;
width: 200px;
line-height: 200px;
text-align: center;
background-color: #FFF;
border-radius: 50%;
}
#svg {
display: inline-block;
vertical-align: middle;
fill: $firstColor;
@for $i from 1 through 18 {
path:nth-child(#{$i}) {
animation: pweek $delayCoeff*$pathNumber linear infinite;
animation-delay: $i*$delayCoeff;
&:hover {
animation-play-state: paused;
}
}
}
}
@keyframes pweek {
0% {
fill: $firstColor;
}
@for $i from 1 through length($listColors) {
#{$i*(100/length($listColors))}% {
fill: nth($listColors, $i);
}
}
}