-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
42 lines (39 loc) · 2.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400&display=swap"
rel="stylesheet">
<title>Parallax scroll</title>
</head>
<body>
<div id="parallax">
<h2>What is Parallax</h2>
<p>Parallax is a displacement or difference in the apparent position of an object viewed along two different
lines of sight, and is measured by the angle or semi-angle of inclination between those two lines.
</p>
</div>
<div>
<p>A simple everyday example of parallax can be seen in the dashboards of motor vehicles that use a needle-style
non-LCD speedometer gauge. When viewed from directly in front the speed may show exactly 60, but when viewed
from the passenger seat the needle may appear to show a slightly different speed due to the angle of viewing
combined with displacement of the needle from the plane of the numerical dial.</p>
</div>
<div>
<p>In a philosophic/geometric sense: an apparent change in the direction of an object, caused by a change in
observational position that provides a new line of sight. The apparent displacement, or difference of
position, of an object, as seen from two different stations, or points of view.</p>
</div>
<div>
<p>The Parallax scrolling technique involves designing the background of a website layout to move at a slower
rate than the foreground when the user scrolls, creating a 3D-like effect. </p>
</div>
<footer>Photos by Steve Johnson on Unsplash</footer>
</body>
<script src="app.js"></script>
</html>