-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathindex.html
More file actions
61 lines (61 loc) · 2.48 KB
/
index.html
File metadata and controls
61 lines (61 loc) · 2.48 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
<html>
<head>
<title>Marquee Fishtank</title>
<style>
body { margin: 0; padding: 0; }
#fishtank {
width: 100%; height: 100%;
}
#water {
width: 100%; height: 100%;
background-color: aqua;
padding: 1em 0 0;
position: absolute;
}
#sand {
width: 100%;
background-color: tan;
bottom: 0;
position: absolute;
}
@keyframes swimming {
0% { transform: translateY(0); }
20% { transform: translateY(-0.5em); }
40% { transform: translateY(0); }
60% { transform: translateY(0.5em); }
80% { transform: translateY(-0.25em); }
100% { transform: translateY(0); }
}
marquee:not(#crab) {
animation-name: swimming;
animation-duration: 3s;
animation-iteration-count: infinite;
animation-timing-function: ease;
}
#fish1 { color: red; animation-delay: 0; }
#fish2 { color: orange; animation-delay: 0.8s; animation-duration: 5s !important; }
#fish3 { color: blue; animation-delay: 0.4s; }
#fish4 { color: purple; animation-delay: 1.6s; }
#fish5 { color: green; animation-delay: 0.8s; }
#fish6 { color: gold; animation-delay: 1.8s; }
#fish7 { color: brown; animation-delay: 0.6s; }
#crab { color: red; position: absolute; bottom: 2em; width: 100%; }
</style>
</head>
<body>
<div id="fishtank">
<div id="water">
<marquee id="fish1" scrollamount=7><><</marquee>
<marquee id="fish2" scrollamount=3><><</marquee>
<marquee id="fish3" direction="right" scrollamount=6>><></marquee>
<marquee id="fish4" scrollamount=10><><</marquee>
<marquee id="fish5" direction="right" scrollamount=5>><></marquee>
<marquee id="fish6" scrollamount=6><><</marquee>
<marquee id="fish7" direction="right" scrollamount=8>><></marquee>
<br><br>
<marquee id="crab" behavior="alternate" scrollamount="4"> (\/)O_o(\/) </marquee>
</div>
<div id="sand"> </div>
</div>
</body>
</html>