-
Notifications
You must be signed in to change notification settings - Fork 0
/
404.html
62 lines (50 loc) · 2.4 KB
/
404.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="CSS Proyect/Error404.css">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<title>Error 404</title>
</head>
<body>
<div class="not-found parallax">
<div class="sky-bg"></div>
<div class="wave-7 layer" data-speed="-5"></div>
<div class="wave-6 layer" data-speed="-2"></div>
<a class="wave-island layer" data-speed="-4" href="index.html">
<img class="layer" data-speed="-9" src="http://res.cloudinary.com/andrewhani/image/upload/v1524501929/404/island.svg" alt="Island">
</a>
<div class="wave-5 layer" data-speed="-4"></div>
<div class="wave-lost wrp layer" data-speed="-3">
<span>4</span>
<span>0</span>
<span>4</span>
</div>
<div class="wave-4 layer" data-speed="-4"></div>
<div class="wave-boat layer" data-speed="-6">
<img class="boat layer" data-speed="-9" src="http://res.cloudinary.com/andrewhani/image/upload/v1524501894/404/boat.svg" alt="Boat">
</div>
<div class="wave-3 layer" data-speed="-2"></div>
<div class="wave-2 layer" data-speed="-5"></div>
<div class="wave-1 layer" data-speed="-7"></div>
<div class="wave-message layer" data-speed="-1">
<p>Your're lost</p>
<p>Click on the island to return</p>
</div>
</div>
<script type="text/javascript">
document.addEventListener("mousemove", parallax);
function parallax(e){
this.querySelectorAll('.layer').forEach(layer => {
const speed = layer.getAttribute('data-speed')
const x = (window.innerWidth - e.pageX*speed)/100
const y = (window.innerHeight - e.pageY*speed)/100
layer.style.transform = `translateX(${x}px) translateY(${y}px)`
});
}
</script>
</body>
</html>