-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
83 lines (80 loc) · 3.96 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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Website Design using html and css</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="main">
<nav>
<div class="logo">
<img src="photos/logo.png" alt="logo">
</div>
<div class="nav-links">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Phone</a></li>
<li><a href="#">Accesories</a></li>
<li><a href="#">Cart</a></li>
</ul>
</div>
</nav>
<div class="information">
<div class="overlay"></div>
<img src="photos/mobile.png" alt="mobile" class="mobile">
<div id="circle">
<div class="feature one">
<img src="photos/battery.png" alt="">
<div>
<h1> Battery Life </h1>
<p>5000mAh, 72Hrs Standby</p>
</div>
</div>
<div class="feature two">
<img src="photos/camera.png" alt="">
<div>
<h1> Camera </h1>
<p>12MP, AI lens</p>
</div>
</div>
<div class="feature three">
<img src="photos/display.png" alt="">
<div> <h1> Display </h1>
<p>6.5 Mini-Drop Fullscreen</p>
</div>
</div>
<div class="feature four">
<img src="photos/processor.png" alt="">
<div>
<h1> Processor </h1>
<p>Snapdragron Octa-core 11nm</p>
</div>
</div>
</div>
</div>
<div class="controls">
<img src="photos/arrow.png" alt="" id="upBtn">
<h3>Features</h3>
<img src="photos/arrow.png" alt="" id="downBtn">
</div>
</div>
<script>
var circle = document.getElementById("circle");
var upBtn = document.getElementById("upBtn");
var downBtn = document.getElementById("downBtn");
var rotateValue = circle.style.transform;
var rotateSum;
upBtn.onclick = function(){
rotateSum = rotateValue + "rotate(-90deg)";
circle.style.transform = rotateSum;
rotateValue = rotateSum
}
downBtn.onclick = function(){
rotateSum = rotateValue + "rotate(90deg)";
circle.style.transform = rotateSum;
rotateValue = rotateSum
}
</script>
</body>
</html>