-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathday93.html
More file actions
73 lines (59 loc) · 1.26 KB
/
day93.html
File metadata and controls
73 lines (59 loc) · 1.26 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DAY 93 | CSS CHALLENGE</title>
<style>
*,
*::after,
*::before {
padding: 0;
margin: 0;
box-sizing: border-box;
}
main {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 15px;
height: 100vh;
background: #16a085;
overflow: hidden;
padding: 15px;
}
.stripe {
width: 30px;
height: 30px;
background-color: #fff;
position: relative;
animation: rotate 4s ease-in-out infinite;
}
.stripe::before {
content: "";
position: absolute;
width: 30px;
height: 30px;
background-color: #fff;
animation: rotate 4s ease-in-out infinite;
}
@keyframes rotate {
100% {
transform: rotate(360deg);
}
}
</style>
</head>
<body>
<main id="stripes">
</main>
<script>
const stripes = document.getElementById("stripes")
for (let h = 0; h < screen.height; h++) {
const stripe = document.createElement('div');
stripe.classList.add("stripe");
stripes.appendChild(stripe)
}
</script>
</body>
</html>