-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
76 lines (71 loc) · 2.06 KB
/
Copy pathindex.html
File metadata and controls
76 lines (71 loc) · 2.06 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Housing.com Landing Page</title>
<!-- CSS File -->
<link rel="stylesheet" href="assets/css/styles.css" />
</head>
<body>
<div class="hero">
<nav>
<div class="logo">
<img src="assets/img/logo.png" />
</div>
<button type="button">List Property</button>
<img src="assets/img/menu.png" class="menu-icon" />
</nav>
<div class="row">
<div class="col-1">
<h1>
Properties to buy<br />
in Delhi
</h1>
<p>
You can explore the best property near you or location you want to
get the property
</p>
<button type="button">Explore Properties</button>
<ul>
<li class="btn active"></li>
<li class="btn"></li>
<li class="btn"></li>
</ul>
</div>
<div class="col-2">
<img src="assets/img/pic1.png" id="banner" />
</div>
</div>
</div>
<!-- JavaScript File -->
<script>
var btn = document.getElementsByClassName("btn");
var banner = document.getElementById("banner");
btn[0].onclick = function () {
banner.src = "assets/img/pic1.png";
animation();
this.classList.add("active");
};
btn[1].onclick = function () {
banner.src = "assets/img/pic2.png";
animation();
this.classList.add("active");
};
btn[2].onclick = function () {
banner.src = "assets/img/pic3.png";
animation();
this.classList.add("active");
};
function animation() {
banner.classList.add("zoom");
setTimeout(function () {
banner.classList.remove("zoom");
}, 500);
for (b of btn) {
b.classList.remove("active");
}
}
</script>
</body>
</html>