-
Notifications
You must be signed in to change notification settings - Fork 1
/
example1.html
32 lines (32 loc) · 1.33 KB
/
example1.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
<!doctype html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Parallax examples</title>
<link rel="stylesheet" type="text/css" href="css/example1.css" />
</head>
<body>
<div class="container">
<h1>Parallax example - Mouse move</h1>
<div class="parallax1">
<img class="parallax-layer" src="img/example1/1.jpg" alt="imag1" />
<img class="parallax-layer" src="img/example1/2.png" alt="imag2" />
<img class="parallax-layer" src="img/example1/3.png" alt="imag3" />
<img class="parallax-layer" src="img/example1/4.png" alt="imag4" />
<img class="parallax-layer" src="img/example1/5.png" alt="imag5" />
<img class="parallax-layer" src="img/example1/6.png" alt="imag6" />
<img class="parallax-layer" src="img/example1/7.png" alt="imag7" />
</div>
</div>
<script type="text/javascript" charset="utf-8" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript" charset="utf-8" src="js/parallax.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
// Declare parallax on layers
$('.parallax-layer').parallax({
mouseport: $(".parallax1")
});
});
</script>
</body>
</html>