-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbar.html
114 lines (93 loc) · 2.83 KB
/
bar.html
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.bar {
width: 100%;
height: 20px;
position: relative;
}
.fill {
background: linear-gradient(45deg, rgba(255, 255, 255, 0.5) 25%,
transparent 25%,
transparent 50%,
rgba(255, 255, 255, 0.5) 50%,
rgba(255, 255, 255, 0.5) 75%,
transparent 75%,
transparent);
background-size: 20px;
animation: move linear infinite 1s;
}
@keyframes move {
100% {
background-position: 0px 100px;
}
}
.fill-bar {
background-color: rgb(131, 131, 131);
width: 100%;
height: 100%;
}
.fill1 {
background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.5), transparent 10%);
/* background-image: repeating-linear-gradient(to bottom right, deeppink 0px, black 40px); */
animation: move1 linear infinite 3s forwards;
}
.fill-bar1 {
background-color: #333;
width: 100%;
height: 100%;
}
@keyframes move1 {
100% {
background-position: -100vw 0px;
}
}
.element {
width: 100%;
height: 50px;
border: 1px solid black;
margin: 0 auto;
background-image: repeating-linear-gradient(to right, deeppink 0px, black 30px);
}
.progress-bar {
background: linear-gradient(135deg,
rgba(51, 51, 51, 0.596) 0%,
rgba(192, 192, 205, 1) 10%,
rgba(51, 51, 51, 0.596) 20%,
rgba(192, 192, 205, 1) 30%,
rgba(51, 51, 51, 0.596) 40%,
rgba(192, 192, 205, 1) 50%,
rgba(51, 51, 51, 0.596) 60%,
rgba(192, 192, 205, 1) 70%,
rgba(51, 51, 51, 0.596) 80%,
rgba(192, 192, 205, 1) 90%,
rgba(51, 51, 51, 0.596) 100%);
width: 100%;
height: 10px;
animation: move2 linear infinite 4s backwards;
}
@keyframes move2 {
100% {
background-position: 100vw 0px;
}
}
</style>
</head>
<body>
<div class="progress-bar"></div>
<br>
<div class="element"></div>
<br>
<div class="bar">
<div class="fill fill-bar"></div>
</div>
<br>
<div class="bar">
<div class="fill1 fill-bar1"></div>
</div>
</body>
</html>