-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (35 loc) · 892 Bytes
/
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">
<title>Section scroll</title>
<script src="js/sectionScroll.min.js"></script>
<style>
* {
margin: 0;
padding: 0;
scroll-behavior: smooth;
}
body {
overflow-x: hidden;
}
.section {
height: 100vh;
width: 100vw;
}
#section1, #section3, #section5 {
background: red;
}
#section2, #section4 {
background: deeppink;
}
</style>
</head>
<body>
<div class="section" id="section1">Section 1</div>
<div class="section" id="section2">Section 2</div>
<div class="section" id="section3">Section 3</div>
<div class="section" id="section4">Section 4</div>
<div class="section" id="section5">Section 5</div>
</body>
</html>