forked from fishtank/fishtank.github.io
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
45 lines (45 loc) · 1.88 KB
/
index.html
File metadata and controls
45 lines (45 loc) · 1.88 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
<html>
<head>
<title>Marquee Fishtank</title>
<style>
#fishtank {
width: 350px;
background-color: aqua;
padding: 1em 0 0;
}
@keyframes swimming {
0% { transform: translateY(0); }
33% { transform: translateY(-0.5em); }
67% { transform: translateY(0.5em); }
100% { transform: translateY(0); }
}
marquee:not(#crab) {
animation-name: swimming;
animation-duration: 2s;
animation-iteration-count: infinite;
animation-timing-function: ease;
}
#fish1 { color: red; animation-delay: 0; }
#fish2 { color: orange; animation-delay: 0.8s; }
#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; animation-delay: 1.4s; }
</style>
</head>
<body>
<div id="fishtank">
<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>
</body>
</html>