-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
89 lines (73 loc) · 1.74 KB
/
index.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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Adelaide (Ada) Bekele</title>
<link rel="preload" href="img/a.jpg" as="image">
<style>
body {
background: #cccfb1 url('img/a.jpg') 0 0/100% no-repeat;
}
body.animated {
animation-name: deers;
animation-duration: 10s;
animation-iteration-count: infinite;
animation-timing-function: steps(1, end);
}
@keyframes deers {
0% {
background-image: url('img/a.jpg');
}
10% {
background-image: url('img/b.jpg');
}
20% {
background-image: url('img/c.jpg');
}
30% {
background-image: url('img/d.jpg');
}
40% {
background-image: url('img/e.jpg');
}
50% {
background-image: url('img/f.jpg');
}
60% {
background-image: url('img/g.jpg');
}
70% {
background-image: url('img/h.jpg');
}
80% {
background-image: url('img/i.jpg');
}
90% {
background-image: url('img/j.jpg');
}
100% {
background-image: url('img/i.jpg');
}
}
@media (min-width: 800px) and (orientation: landscape) {
body {
background-size: cover;
}
}
</style>
<script type="text/javascript">
window.addEventListener('load', async () => {
await Promise.all(Array.prototype.map.call('bcdefghi', (name) => new Promise((resolve) => {
const img = new Image();
img.src = `img/${name}.jpg`;
img.onload = resolve;
return img;
})));
document.body.classList.add('animated');
});
</script>
</head>
<body>
</body>
</html>