-
Notifications
You must be signed in to change notification settings - Fork 0
/
SAMPLE16.HTML
63 lines (58 loc) · 1.35 KB
/
SAMPLE16.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: var(--black);
overflow: hidden;
}
.battery {
width: 200px;
height: 100px;
border: 2px solid #ffffff;
position: relative;
}
.battery-head {
width: 100%;
height: 20px;
background: #00ff00;
}
.battery-body {
width: 100%;
height: 60px;
background: #cccccc;
position: relative;
}
.charge {
width: 0%;
height: 100%;
background: #00ff00;
position: absolute;
animation: charge 2s linear infinite;
}
@keyframes charge {
0% {
width: 0%;
}
100% {
width: 100%;
}
}
</style>
</head>
<body>
<div class="battery">
<div class="battery-head"></div>
<div class="battery-body">
<div class="charge"></div>
</div>
</div>
</body>
</html>