-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.html
387 lines (362 loc) · 9.63 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
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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
<meta name="viewport" content= "width=device-width, initial-scale=1.0">
<style id="css">
*, *:before, *:after {
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
color: white;
}
html, body {
width: 100%;
height: 100%;
overflow: hidden;
}
.content {
height: 100%;
overflow-x: hidden;
overflow-y: auto;
clip-path: border-box;
transform: translateZ(0);
}
.block {
position: relative;
height: 100vh;
}
[class*='item-parallax'] {
position: absolute;
width: 100%;
height: 100%;
transition: transform 0.3s ease-out;
will-change: transform;
}
.item-parallax-media {
z-index: 1;
}
.item-parallax-media img {
will-change: transform;
}
.item-parallax-content {
z-index: 2;
}
.block:nth-child(1) .item-parallax-content {
transform: translateY(calc(var(--yBlock-1) * 0.5px));
}
.block:nth-child(1) .item-parallax-media img {
transform: translateY(calc(var(--yBlock-1) * 0.1px));
}
.block:nth-child(2) .item-parallax-content {
transform: translateY(calc(var(--yBlock-2) * 0.5px));
}
.block:nth-child(2) .item-parallax-media img {
transform: translateY(calc(var(--yBlock-2) * 0.1px));
}
.block:nth-child(3) .item-parallax-content {
transform: translateY(calc(var(--yBlock-3) * 0.5px));
}
.block:nth-child(3) .item-parallax-media img {
transform: translateY(calc(var(--yBlock-3) * 0.1px));
}
.block:nth-child(4) .item-parallax-content {
transform: translateY(calc(var(--yBlock-4) * 0.5px));
}
.block:nth-child(4) .item-parallax-media img {
transform: translateY(calc(var(--yBlock-4) * 0.1px));
}
.block:nth-child(5) .item-parallax-content {
transform: translateY(calc(var(--yBlock-5) * 0.5px));
}
.block:nth-child(5) .item-parallax-media img {
transform: translateY(calc(var(--yBlock-5) * 0.1px));
}
html {
background-color: #00171f;
}
.flex-container {
display: flex;
}
.centered-content {
margin: auto;
}
.head-large {
margin-bottom: 5vw;
font-size: 10vw;
line-height: 1.2em;
font-family: 'Inknut Antiqua', serif;
color: wheat;
opacity: 0.9;
}
@media screen and ( max-width: 800px) {
.head-large{
font-size: 5rem;
}
.section-landing:before, .section-end:before{
opacity: 0;
}
}
@media screen and (max-width:440px) {
.head-large{
font-size: 4rem;
}
.img-caption h2{
font-size: 80%;
}
.img-caption p {
font-size: 15px;
}
.type-left .img-caption{
margin-top: 35px;
}
.img-grid:nth-child(2) .img-caption p{
font-size: 13px;
}
.type-left .img-caption h2{
margin-bottom: 10px;
}
}
.head-small {
margin-bottom: 1.5rem;
font-size: 1.2rem;
line-height: 1.2em;
font-family: 'Roboto Condensed', sans-serif;
color: white;
text-transform: uppercase;
letter-spacing: 0.5em;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.head-centered {
text-align: center;
}
.copy {
display: block;
max-width: 500px;
margin-right: auto;
margin-bottom: 1.5rem;
margin-left: auto;
padding-right: 1.5rem;
padding-left: 1.5rem;
font-family: 'Roboto', sans-serif;
font-size: 1rem;
line-height: 1.8em;
text-align: center;
}
.copy-white {
color: white;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.item-parallax-media {
overflow: hidden;
}
.item-parallax-media img {
position: absolute;
top: -10%;
left: -10%;
width: 120%;
height: 120%;
object-fit: cover;
}
.section-landing:before {
content: '';
position: absolute;
top: 35%;
left: 24%;
width: 10px;
height: 83%;
background-color: white;
z-index: 3;
transform: translateY(-13vw);
}
.section-landing .item-parallax-media {
opacity: calc(1 - (var(--y) * 0.0009));
}
.landing-content {
padding-left: 30%;
}
.section-intro:before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 10px;
height: 80%;
background-color: #0d232a;
transform: translateX(-50%) translateY(-50%) rotate(calc((var(--y) * 0.1deg)));
will-change: transform;
backface-visibility: visible;
}
.img-grid {
flex-direction: column;
justify-content: space-around;
}
.img-gridItem {
position: relative;
width: 100%;
max-width: 800px;
margin-right: auto;
margin-left: auto;
}
.img-gridItem img {
display: block;
width: 45%;
height: 35vh;
object-fit:none;
will-change: transform;
backface-visibility: visible;
}
.img-gridItem.type-left img {
margin-right: auto;
}
.img-gridItem.type-right img {
margin-left: auto;
}
.img-gridItem:nth-child(1) img {
transform: translateX(calc(var(--yBlock-4) * -0.03%));
}
.img-gridItem:nth-child(2) img {
transform: translateX(calc(var(--yBlock-4) * 0.03%));
}
.img-caption {
position: absolute;
top: 50%;
width: 50%;
transform: translateY(-50%);
}
.img-caption * {
text-align: left;
padding-right: 1.5rem;
padding-left: 1.5rem;
}
.type-left .img-caption {
right: 0;
}
.type-right .img-caption {
left: 0;
}
.section-end:before {
content: '';
position: absolute;
bottom: 50%;
top: -10%;
left: 24%;
width: 10px;
height: 80%;
background-color: white;
z-index: 3;
transform: translateY(8vw);
}
.custom-properties-ftw {
padding: 2.5rem 1.5rem;
}
.custom-properties-ftw .head-small {
margin-bottom: 0;
}
.img-1{
opacity: 0.6;
}
.img-2{
opacity: 0.7;
}
.img-3{
opacity: 0.8;
}
</style>
<main class="content js-content">
<section class="block section-landing">
<figure class="item-parallax-media">
<img class="img-2" src="https://i.postimg.cc/DwP6Ky8V/Untitled-design-13.png" alt="" />
</figure>
<div class="item-parallax-content flex-container">
<div class="landing-content centered-content">
<h1 class="head-large">Buy Organic </h1>
</div>
</div>
</section>
<section class="block section-intro">
<div class="item-parallax-content flex-container">
<div class="centered-content">
<h2 class="head-small head-centered">Visibility</h2>
<p class="copy copy-white">
To be the world’s most successful and important natural harvest company. Successful in helping our customers apply technology to solve their problems. Successful in introducing this extraordinary technology to new customers. Important because we will continue to be the basic resource of much of what is invested in this industry.
</p>
<p class="copy copy-white">
People working together as a lean, global enterprise to make people’s lives better through processing and mobility leadership.We believe in deep collaboration and cross-pollination of our groups, which allow us to innovate in a way that others cannot.
</p>
</div>
</div>
</section>
<section class="block section-part">
<figure class="item-parallax-media">
<img class="img-3" src="https://i.postimg.cc/Pxq7PvBn/Untitled-design-12.png" alt="" />
</figure>
<div class="item-parallax-content flex-container">
<div class="centered-content">
<h1 class="head-large head-centered">Garden <br/>of Purity</h1>
<p class="copy copy-white">
Organic farming avoids chemical pesticides and fertilizers and seeks to increase soil fertility through feeding soil micro-life with residues from life such as garbage compost and sewage, manure, plant residues, food processing wastes
</p>
</div>
</div>
</section>
<section class="block">
<div class="item-parallax-content flex-container img-grid">
<figure class="img-gridItem type-right">
<img src="https://i.postimg.cc/J4Bbc3J4/Untitled-design-11.png" alt="" />
<figcaption class="img-caption">
<h2 class="head-small">Natural</h2>
<p class="copy copy-white">
Nature adopts different method to supply of nutrients to the soil and maintain the fertility of soil. The supply of nutrients are undisrupted in the nature.
</p>
</figcaption>
</figure>
<figure class="img-gridItem type-left">
<img src="https://i.postimg.cc/nV0bkpHL/Untitled-design-10.png" alt="" />
<figcaption class="img-caption">
<h2 class="head-small">Sustainable</h2>
<p class="copy copy-white">
Organic Agriculture aims at the development of viable and sustainable agriculture. Organic food is produced by the following a system of farm management practices that seek to nurture ecosystem which achieve sustainable productivity.
</p>
</figcaption>
</figure>
</div>
</section>
<section class="block section-end">
<figure class="item-parallax-media">
<img class="img-1" src="https://i.postimg.cc/yNGXc9xt/Orange-Autumn-Leaf-Quote-Fall-Desktop-Wallpaper.png" alt="" />
</figure>
<div class="item-parallax-content flex-container">
<div class="landing-content centered-content">
<h1 class="head-large">Back to Basic</h1>
<h2 class="head-small"><a href="Products_page/products.html">Products</a></h2>
</div>
</div>
</section>
<section class="custom-properties-ftw">
<h3 class="head-small head-centered">Custom Properties</h3>
</section>
</main>
<script id="jsbin-javascript">
const body = document.body;
const content = document.querySelector('.js-content');
const blocks = document.querySelectorAll('.block');
const updateOffset = () => {
requestAnimationFrame(updateOffset);
body.style.setProperty('--y', content.scrollTop);
updateProps();
};
const updateProps = () => {
let i = -1;
for (let block of blocks) {
i += 1;
let top = blocks[i].getBoundingClientRect().top;
if (top < window.innerHeight * 1.3 && top > window.innerHeight * -1.3) {
body.style.setProperty(`--yBlock-${i + 1}`, top);
} else {
body.style.setProperty(`--yBlock-${i + 1}`, 0);
}
}
};
updateProps();
updateOffset();
</script>