-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
37 lines (31 loc) · 1.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Parallaxe | Mehdi ALAOUI</title>
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<h2 class="title" style="font-size: 38px;">Parallaxe effect</h2><br/>
<div class="container" style="width:55%;border: none">
<h3 id="version" class="title"></h3><br/>
<div id="container" class="container" style="width:95%;">
<img class="layer" data-sensitivity="0.7" data-opacity="0.15" data-degree="2" src="img/relative/layer1.png">
<img class="layer" data-sensitivity="0.7" data-opacity="0.30" data-degree="4" src="img/relative/layer2.png">
<img class="layer" data-sensitivity="0.7" data-opacity="0.45" data-degree="8" src="img/relative/layer3.png">
<img class="layer" data-sensitivity="0.7" data-opacity="0.60" data-degree="12" src="img/relative/layer4.png">
<img class="layer" data-sensitivity="0.7" data-opacity="0.75" data-degree="16" src="img/relative/layer5.png">
<img class="layer" data-sensitivity="0.7" data-opacity="0.90" data-degree="20" src="img/relative/layer6.png">
</div>
</div>
<h3 class="title"><br/>Realised by: Mehdi ALAOUI</h3>
<script type="text/javascript" src="js/functions.js"></script>
<script type="text/javascript" src="js/parallaxe.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script>
document.getElementById('version').innerHTML+=(SCREEN.isTouch ? "Mobile" : "Desktop")+" version detected"; //Changing the webpage title
var container=document.getElementById("container");
parallaxeElement(container);
</script>
</body>
</html>