forked from md-ash-dot/december-hackathon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnowman.html
More file actions
55 lines (49 loc) · 1.22 KB
/
snowman.html
File metadata and controls
55 lines (49 loc) · 1.22 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>snowman</title>
</head>
<body>
<div class="img-box"><img src="assets\image\snowman.jpeg" alt="snowman"></div>
<!-- addimage -->
</body>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
min-height: 100vh;
background: url("assets/image/snowman.jpeg") no-repeat center center;
background-size: cover;
animation: animate 3s linear infinite;
}
@keyframes animate {
0% {
filter: hue-rotate(0deg);
}
50% {
filter: hue-rotate(180deg); /* Change color at the halfway point */
}
100% {
filter: hue-rotate(360deg); /* Return to the original color */
}
}
.img-box {
width: 700px;
height: 700px;
}
.img-box img {
width: 100%;
height: 100%;
}
</style>
</html>
<!-- color changing snowman for a spare day if needed, img generated using ai -->