-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
92 lines (85 loc) · 2.91 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
<!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>Website Design Using HTML and CSS</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div class="main">
<nav>
<div class="logo">
<img src="./images/logo.png" alt="phn">
</div>
<div class="nav-links">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Phone</a></li>
<li><a href="#">Accessories</a></li>
<li><a href="#">Cart</a></li>
</ul>
</div>
</nav>
<div class="information">
<div class="overlay"></div>
<img src="./images/mobile.png" class="mobile">
<div id="circle">
<div class="feature one">
<img src="./images/camera.png" alt="camera">
<div>
<h1>Camera</h1>
<p>12MP,Wide Angle Lens</p>
</div>
</div>
<div class="feature two">
<img src="./images/processor.png" alt="processor">
<div>
<h1>Processor</h1>
<p>Snapdragon 865, Octa-core</p>
</div>
</div>
<div class="feature three">
<img src="./images/display.png" alt="display">
<div>
<h1>Display</h1>
<p>6.5" Mini-Drop Fullscreen</p>
</div>
</div>
<div class="feature four">
<img src="./images/battery.png" alt="battery">
<div>
<h1>Battery</h1>
<p>5000mAH, 720Hrs</p>
</div>
</div>
</div>
</div>
<div class="controls">
<img src="./images/arrow.png" id="upBtn">
<h3>Features</h3>
<img src="./images/arrow.png" 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>