-
Notifications
You must be signed in to change notification settings - Fork 2
/
bar.css
63 lines (57 loc) · 874 Bytes
/
bar.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
.loading {
position: fixed;
top: 0;
width: 100%;
height: 3px;
background-color: #ffffff;
border-radius: 1px;
overflow: hidden;
display: none;
}
.showBar{
display: block;
}
button:hover{
outline: 1px solid blue;
}
.bar::before {
content: "";
position: absolute;
top: 0;
left: 0;
bottom: 0;
background-color: #ff0008;
animation: bar-1 2.1s cubic-bezier(0.65, 0.81, 0.73, 0.4) infinite;
}
@keyframes bar-1 {
0% {
left: -35%;
right: 100%;
}
60%,
100% {
left: 100%;
right: -90%;
}
}
.bar::after {
content: "";
position: absolute;
top: 0;
left: 0;
bottom: 0;
background-color: #ff0008;
animation: bar-2 2.1s cubic-bezier(0.16, 0.84, 0.44, 1) infinite;
animation-delay: 1.15s;
}
@keyframes bar-2 {
0% {
left: -200%;
right: 100%;
}
60%,
100% {
left: 107%;
right: -8%;
}
}