-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
50 lines (44 loc) · 1.3 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
43
44
45
46
47
48
49
50
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Home | Netflix</title>
<link rel="stylesheet" href="style.css">
<script src="script2.js"></script>
</head>
<body>
<div class="nav">
<div class="nav_left">
<img class="nav_logo" src="images/netflix logo.png" alt="">
</div>
<div class="nav_right">
<img class="nav_avatar" src="images/Netflix-avatar.png" alt="">
</div>
</div>
<!--Banner-->
<header id="banner">
<div id="banner_contents">
<h1 id="banner_title"></h1>
<div id="banner_buttons">
<button id="banner_button">Play</button>
<button id="banner_button">My List</button>
</div>
<p id="banner_description"></p>
</div>
<div id="banner_fadeBottom"></div>
</header>
<!--row-->
<div id="headrow">
<div class="row">
<h2 class="row_title"></h2>
<div class="row_posters"></div>
</div>
</div>
<script>
window.addEventListener("scroll",function(){
var nav = document.querySelector(".nav");
nav.classList.toggle("active",window.scrollY > 0);
})
</script>
</body>
</html>