-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
115 lines (99 loc) · 4.77 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!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">
<title>project1</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" />
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200&display=swap');
</style>
</head>
<body>
<header>
<a href="#" class="brand">Travel</a>
<div class="menu-btn"></div>
<div class="navigation">
<div class="navigation-items">
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Explore</a>
<a href="#">Gallery</a>
<a href="#">Contact</a>
</div>
</div>
</header>
<section class="home">
<video class="video-slide active" src="1.mp4" autoplay muted loop></video>
<video class="video-slide" src="5.mp4" autoplay muted loop></video>
<video class="video-slide" src="3.mp4" autoplay muted loop></video>
<video class="video-slide" src="4.mp4" autoplay muted loop></video>
<video class="video-slide" src="2.mp4" autoplay muted loop></video>
<div class="content active">
<h1>Wonderful.<br><span>Island</span></h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae recusandae debitis quo tempora distinctio dolore explicabo odit? Possimus pariatur odio quam. Eum nam sint veniam deserunt doloremque, distinctio voluptates ab!</p>
<a href="#">Read More</a>
</div>
<div class="content">
<h1>Camping.<br><span>Enjoy</span></h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae recusandae debitis quo tempora distinctio dolore explicabo odit? Possimus pariatur odio quam. Eum nam sint veniam deserunt doloremque, distinctio voluptates ab!</p>
<a href="#">Read More</a>
</div>
<div class="content">
<h1>Adventures.<br><span>Off Road</span></h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae recusandae debitis quo tempora distinctio dolore explicabo odit? Possimus pariatur odio quam. Eum nam sint veniam deserunt doloremque, distinctio voluptates ab!</p>
<a href="#">Read More</a>
</div>
<div class="content">
<h1>Road Trip.<br><span>Together</span></h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae recusandae debitis quo tempora distinctio dolore explicabo odit? Possimus pariatur odio quam. Eum nam sint veniam deserunt doloremque, distinctio voluptates ab!</p>
<a href="#">Read More</a>
</div>
<div class="content">
<h1>Feel Nature.<br><span>Relax</span></h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae recusandae debitis quo tempora distinctio dolore explicabo odit? Possimus pariatur odio quam. Eum nam sint veniam deserunt doloremque, distinctio voluptates ab!</p>
<a href="#">Read More</a>
</div>
<div class="slider-navigation">
<div class="nav-btn active"></div>
<div class="nav-btn"></div>
<div class="nav-btn"></div>
<div class="nav-btn"></div>
<div class="nav-btn"></div>
</div>
</section>
<script type="text/javascript">
const menuBtn = document.querySelector(".menu-btn");
const navigation = document.querySelector(".navigation");
menuBtn.addEventListener("click", () => {
menuBtn.classList.toggle("active");
navigation.classList.toggle("active");
});
//javascript
const btns = document.querySelectorAll(".nav-btn");
const slides = document.querySelectorAll(".video-slide");
const contents = document.querySelectorAll(".content");
var sliderNav = function(manual){
btns.forEach((btn) => {
btn.classList.remove("active");
});
slides.forEach((slide) => {
slide.classList.remove("active");
});
contents.forEach((content) => {
content.classList.remove("active");
});
btns[manual].classList.add("active");
slides[manual].classList.add("active");
contents[manual].classList.add("active");
}
btns.forEach((btn, i) => {
btn.addEventListener("click", () => {
sliderNav(i);
});
});
</script>
</body>
</html>