-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
121 lines (105 loc) · 4.1 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
116
117
118
119
120
121
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Website design</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="navbar">
<div class="logo">
<img src="images/logo.png" >
</div>
<nav>
<ul>
<li><a href="">About</a></li>
<li><a href="">Library</a></li>
<li><a href="">Blog</a></li>
<li><a href="">Contact</a></li>
</ul>
</nav>
<div class="user">
<p>Jay Bamroliya</p>
<img src="images/user.png.jpeg" class="avtar">
</div>
</div>
<div class="sidebar">
<img src="images/search.png" class="search-icon">
<div class="social-links">
<img src="images/fb.png">
<img src="images/pt.png">
<img src="images/tw.png">
</div>
<img src="images/info.png" class="info-icon">
</div>
<div class="msg-container">
<div id="slider">
<div class="msg-col">
<h1>The Reasoning</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Nulla pelletesque quam maximus nibh tristique,
ut tempus nulla euismod. Etiam a volutpat orci, nec
pharetra purus.</p>
<a href="">Learn More</a>
</div>
<div class="msg-col">
<h1>The Knowledge</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Nulla pelletesque quam maximus nibh tristique,
ut tempus nulla euismod. Etiam a volutpat orci, nec
pharetra purus.</p>
<a href="">Learn More</a>
</div>
<div class="msg-col">
<h1>The Integration</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Nulla pelletesque quam maximus nibh tristique,
ut tempus nulla euismod. Etiam a volutpat orci, nec
pharetra purus.</p>
<a href="">Learn More</a>
</div>
<div class="msg-col">
<h1>The Learning</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing
elit. Nulla pelletesque quam maximus nibh tristique,
ut tempus nulla euismod. Etiam a volutpat orci, nec
pharetra purus.</p>
<a href="">Learn More</a>
</div>
</div>
</div>
<div class="controller">
<div id="line1"></div>
<div id="line2"></div>
<div id="line3"></div>
<div id="line4"></div>
<div id="active"></div>
</div>
</div>
<script>
var slider = document.getElementById('slider')
var active = document.getElementById('ative')
var line1 = document.getElementById('line1')
var line2 = document.getElementById('line2')
var line3 = document.getElementById('line3')
var line4 = document.getElementById('line4')
line1.onclick = function(){
slider.style.transform = 'translateX(0)';
active.style.top = '0px';
}
line2.onclick = function(){
slider.style.transform = 'translateX(-25%)';
active.style.top = '80px';
}
line3.onclick = function(){
slider.style.transform = 'translateX(-50%)';
active.style.top = '160px';
}
line4.onclick = function(){
slider.style.transform = 'translateX(-75%)';
active.style.top = '240px';
}
</script>
</body>
</html>