-
Notifications
You must be signed in to change notification settings - Fork 1
/
woman.html
244 lines (196 loc) · 4.51 KB
/
woman.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<style media="screen">
*{
margin: 0; padding: 0;
box-sizing: border-box;
text-transform: capitalize;
transition: all .2s linear;
font-family: tahoma;
}
html{
scroll-behavior: smooth;
}
body{
overflow-x: inherit;
}
.sec{
min-height: 100vh;
width: 100vw;
display: flex;
align-items: center;
justify-content: center;
font-size: 3em;
color:#777;
background: #f9f9f9;
letter-spacing: 2px;
position: relative;
}
.sec img{
height: 800px;
width: 100vw;
display: flex;
align-items: center;
justify-content: center;
}
#business img{
height: 800px;
width: 100vw;
display: flex;
align-items: center;
justify-content: center;
}
.sec video{
width: 100vw;
display: flex;
align-items: center;
justify-content: center;
}
.sec:nth-child(odd){
background: #ddd;
}
/* #below_heading{
position: absolute;
top: 0;
} */
.navbar{
position: fixed;
top:50%; right:30px;
transform: translateY(130%);
z-index: 1000;
}
.navbar ul{
list-style: none;
padding:0; margin: 0;
}
.navbar ul li{
width: 200px;
position: relative;
text-align: right;
}
.navbar ul li .dot{
color:black;
display: block;
padding-bottom:20px;
}
.navbar ul li .dot span{
display: inline-block;
background: #f44336;
letter-spacing: 1px;
padding:10px 25px;
margin-right: 30px;
border-radius: 3px;
transform: translateX(30px);
opacity: 0;
}
.navbar ul li:hover .dot span{
transform: translateX(0px);
opacity: 1;
}
.navbar ul li .dot::before,
.navbar ul li .dot::after{
content: '';
position: absolute;
top:50%;
border-radius: 50%;
display: block;
transition: .2s ease-out;
}
.navbar ul li .dot::before{
height:5px;
width: 5px;
border: 2px solid #333;
right:0;
transform: translateY(-50%);
}
.navbar ul li .dot.active::before,
.navbar ul li:hover .dot::before{
border-color: black;
background: black;
}
.navbar ul li .dot.active::after,
.navbar ul li:hover .dot::after{
transform: translateY(-50%) scale(1);
}
body {
overflow: hidden; /* Hide scrollbars */
text-decoration: none;
}
#below_heading{
width: 40%;
margin-left: auto;
display: flex;
justify-content: space-around;
position: fixed;
top: 93%;
left: 30%;
font-weight: bold;
font-size: 13px;
font-family: sans-serif;
}
#below_heading a{
text-decoration: none;
}
</style>
</head>
<body>
<!-- navbar area -->
<nav class="navbar">
<ul>
<li>
<a href="#samrt_casual" class="dot active" data-scroll="home" data-bs-interval="200">
</a>
</li>
<li>
<a href="#business" class="dot" data-scroll="service" data-bs-interval="200">
</a>
</li>
<li>
<a href="#wfh" class="dot" data-scroll="project" data-bs-interval="200">
</a>
</li>
<li>
<a href="#contact" class="dot" data-scroll="contact" data-bs-interval="200">
</a>
</li>
</ul>
</nav>
<!-- slide area -->
<section class="sec" id="samrt_casual">
<img src="https://static.zara.net/photos///contents/mkt/spots/aw22-north-woman-new/subhome-xmedia-34-4//w/1920/IMAGE-landscape-fill-3cc3e561-2509-43f8-b497-ebdffe12311e-default_0.jpg?ts=1661418639520" alt="">
</section>
<section class="sec" id="business">
<img src="https://static.zara.net/photos///contents/mkt/spots/aw22-north-woman-basics/subhome-xmedia-34-5//w/1920/IMAGE-landscape-fill-245edaff-a081-4151-8aa0-5a4297c5fd21-default_0.jpg?ts=1661426937081" alt="">
</section>
<section class="sec" id="wfh">
<img src="https://static.zara.net/photos///contents/mkt/spots/aw22-north-woman-shoes-bags/subhome-xmedia-34//w/1920/IMAGE-landscape-fill-04012559-b425-4b97-abeb-09aec1f59345-default_0.jpg?ts=1661419895724" alt="">
</section>
<section class="sec" id="contact">
Footer
</section>
<!-- below heading area -->
<div id="below_heading">
<a href="#samrt_casual"><p>NEW</p></a>
<a href="#business"><p>BASICS</p></a>
<a href="#wfh"><p>SHOES</p></a>
</div>
<!-- script area -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" charset="utf-8"></script>
<script type="text/javascript">
$(document).ready(function(){
$(window).on('scroll',function(){
var link = $('.navbar a.dot');
var top = $(window).scrollTop();
$('.sec').each(function(){
var id = $(this).attr('id');
var height = $(this).height();
var offset = $(this).offset().top - 150;
if(top >= offset && top < offset + height){
link.removeClass('active');
$('.navbar').find('[data-scroll="' + id + '"]').addClass('active');
}
});
});
});
</script>