-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (45 loc) · 1.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="./styles/style.css" />
<title>Night Sky</title>
</head>
<body>
<!-- Create stars -->
<div class="stars"></div>
<!-- An image with transparency -->
<div class="twinkling"></div>
<!-- Create moon in sky -->
<div class="moon"></div>
<!-- Create sea -->
<div id="sea">
<div id="sea-water">
<div class="moon-reflection"></div>
</div>
</div>
<!-- Graphics parts for sea waves -->
<svg>
<!-- Filter of the graphic -->
<filter id="turbulence" x="0" y="0" width="100%" height="100%">
<feTurbulence
id="sea-filter"
numOctaves="3"
seed="2"
baseFrequency="0.02 0.15"
></feTurbulence>
<feDisplacementMap scale="2000" in="SourceGraphic"></feDisplacementMap>
</filter>
<!-- Animator of the graphic -->
<animate
xlink:href="#sea-filter"
attributeName="baseFrequency"
dur="60s"
keyTimes="0;0.5;1"
values="0.02 0.15;0.02 0.20;0.02 0.15"
repeatCount="indefinite"
/>
</svg>
</body>
</html>