-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
482 lines (444 loc) · 24.2 KB
/
index.html
File metadata and controls
482 lines (444 loc) · 24.2 KB
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
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CIN-Web</title>
<link href="lib/sec1-bot.css" rel="stylesheet">
<link href="lib/section1.css" rel="stylesheet">
<link href="lib/section2.css" rel="stylesheet">
<link href="lib/section3.css" rel="stylesheet">
<link href="lib/section4.css" rel="stylesheet">
<link href="lib/section5.css" rel="stylesheet">
<style>
body, html {
height: 100%;
scroll-behavior: smooth;
/*overflow-x: hidden;*/
}
.section {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
transition: transform 0.7s ease;
}
/* For a specific section or div */
.section {
overflow: hidden; /* Completely hides the scrollbar and disables scrolling */
overflow-y: scroll; /* Allows vertical scrolling but hides the scrollbar */
}
/* Hide scrollbar for the element in most browsers */
.section::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar in Firefox, Edge, and IE */
.section {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
/* Hide scrollbar for Chrome, Safari, and Opera */
body::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge, and Firefox */
body {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
/* Allow scrolling but hide the scrollbar */
body {
overflow-y: scroll; /* Enable vertical scrolling */
}
</style>
</head>
<body>
<!-- Section1 -->
<section id="section1" class="section section1">
<video autoplay muted loop id="background-video">
<source src="assets/section1/bac-vid.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="header">
<img
data-aos="fade-up"
data-aos-anchor-placement="top-center"
data-aos-duration="1500"
src="assets/cin-logo.png" alt="">
<h1
data-aos="zoom-in"
data-aos-duration="2000"
>creativity in nature</h1>
<h2
data-aos="zoom-in"
data-aos-delay="2000"
data-aos-duration="2500">The shining star of digital success</h2>
<button
data-aos="zoom-in"
data-aos-delay="2500"
data-aos-duration="2000" class="button-84"role="button">MAKE A WISH</button>
</div>
<div class="footer">
<img id="glob1" src="assets/glob1.gif" alt="">
</div>
</section>
<!-- Section2 -->
<section id="section2" class="section section2">
<div class="section2-content">
<div
data-aos="zoom-out-up"
data-aos-duration="2000"
class="text">
<h1>creativity in nature</h1>
<h2>Digital Marketing Agency</h2>
<p>CIN is a joyous celebration of human creativity. We are a group of hand-picked, like-minded professionals who have come together to make the ultimate creative team. Each of us is a game-changing expert in our respective areas. Together, we are CIN. We help clients harness the magic of social media, develop a domineering web presence, generate leads, grow brands and straight-up design their products, processes and projects as needed.</p>
</div>
<div class="image">
<!-- <img data-aos="fade-down-right" src="assets/glob1.gif" alt="Glob1" id="small-globe"> -->
</div>
</div>
</section>
<!-- Section 3 -->
<section id="section3" class="section section3">
<div class="section3-content">
<div class="text">
<h1 id="section-title">Why Choose Us?</h1>
<h2 id="section-subtitle"></h2>
<p id="section-description">
</p>
</div>
<div class="footer">
<div class="planet-container">
<div class="planet-links" id="planet-name">
<a href="#" class="name planet1" data-planet="Mercury" data-description="The smallest planet in our solar system.">Mercury</a>
<a href="#" class="name planet2" data-planet="Venus" data-description="The second planet from the sun, known for its thick atmosphere.">Venus</a>
<a href="#" class="name planet3" data-planet="Earth" data-description="Our home planet, the only known planet to support life.">Earth</a>
<a href="#" class="name planet4" data-planet="Mars" data-description="The red planet, known for its iron oxide surface.">Mars</a>
<a href="#" class="name planet5" data-planet="Jupiter" data-description="The largest planet in our solar system, with a great red spot.">Jupiter</a>
<a href="#" class="name planet6" data-planet="Saturn" data-description="Known for its extensive ring system.">Saturn</a>
<a href="#" class="name planet7" data-planet="Uranus" data-description="An ice giant with a unique tilt.">Uranus</a>
<a href="#" class="name planet8" data-planet="Neptune" data-description="The furthest planet from the sun, known for its blue color.">Neptune</a>
</div>
</div>
</div>
</div>
</section>
<!-- Section 4 -->
<section id="section4" class="section section4">
<video autoplay muted loop id="video-bg">
<source src="assets/sect-4-bg.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
<div class="content">
<div class="planet-container">
<img data-aos="zoom-in" data-aos-duration="2500" src="assets/cin-logo.png" alt="Current Globe" class="sect4-logo">
<!-- <div class="services">
<a href="#" class="service" style="transform: rotate(0deg) translate(410px) rotate(0deg);">SOCIAL MEDIA OPTIMISATION</a>
<a href="#" class="service" style="transform: rotate(40deg) translate(180px) rotate(-40deg);">INFLUENCER MARKETING</a>
<a href="#" class="service" style="transform: rotate(320deg) translate(550px, -60px) rotate(-320deg);">CREATIVE DESIGN</a>
<a href="#" class="service" style="transform: rotate(120deg) translate(400px) rotate(-120deg);">aaa</a>
<a href="#" class="service" style="transform: rotate(160deg) translate(250px) rotate(-160deg);">PAY PER CLICK</a>
<a href="#" class="service" style="transform: rotate(200deg) translate(400px, -80px) rotate(-200deg);">SEARCH ENGINE OPTIMISATION</a>
<a href="#" class="service" style="transform: rotate(200deg) translate(400px, 70px) rotate(-200deg);">REVENUE MANAGEMENT</a>
<a href="#" class="service" style="transform: rotate(240deg) translate(500px, -80px) rotate(-240deg);">WEBSITE DESIGN</a>
<a href="#" class="service" style="transform: rotate(280deg) translate(500px) rotate(-280deg);">ONLINE REPUTATION MANAGEMENT</a>
<a href="#" class="service" style="transform: rotate(320deg) translate(500px, 150px) rotate(-320deg);">PHOTOGRAPHY/VIDEOGRAPHY</a>
</div> -->
<div class="services">
<a href="#" class="service" >SOCIAL MEDIA OPTIMISATION</a>
<a href="#" class="service" >INFLUENCER MARKETING</a>
<a href="#" class="service" >CREATIVE DESIGN</a>
<a href="#" class="service" >PAY PER CLICK</a>
<a href="#" class="service" >SEARCH ENGINE OPTIMISATION</a>
<a href="#" class="service" >REVENUE MANAGEMENT</a>
<a href="#" class="service" >WEBSITE DESIGN</a>
<a href="#" class="service" >ONLINE REPUTATION MANAGEMENT</a>
<a href="#" class="service" >PHOTOGRAPHY/VIDEOGRAPHY</a>
</div>
</div>
</div>
</section>
<!-- Section 5 -->
<section id="section5" class="section section5">
<div class="content">
<img data-aos="zoom-out" data-aos-duration="1500" src="assets/cin-logo.png" alt="Current Globe" class="sect5-logo">
<div data-aos="zoom-out" data-aos-duration="1500" class="image-wrapper">
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/AI.png" alt="Image 1" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/alivaa white png.png" alt="Image 2" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/Ascot_Logo_White.png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/Corporate logo white (1).png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/DT LOGO final-01.png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/Eight Continents (1).png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/emperor.png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/French Rivera Logo-Curved.png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/grand white logo.png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/Hyatt logo_3.png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/LeAmanah Logo.png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/lemon-tree-hotels-seeklogo.png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/LOGO (2) White.png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/Logo White.png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/logo.png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/main logo post size.png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/New logo- White.png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/new Logo-01 (2).png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/New Moksha Logo -1.png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/R Marina - White-02.png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/RIWAAT WHITE.png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/Surya.png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/Svelte DELHI Logo (1).png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/white.png" alt="Image 3" class="satellite-image">
</a>
<a href="https://example.com" class="satellite-link">
<p class="satellite-image"> </p>
</a>
<a href="https://example.com" class="satellite-link">
<img src="assets/icons/white_1.png" alt="Image 3" class="satellite-image">
</a>
</div>
</div>
</section>
<!-- Footer -->
<!-- <section id="footer" class="footer">
<div class="content">
<div class="footer-left">
<p>© 2024 Your Company Name. All rights reserved.</p>
</div>
</div>
</section> -->
<script src="https://cdn.jsdelivr.net/gh/peterhry/[email protected]/dist/circletype.min.js"></script>
<script src="lib/js/transition.js"></script>
<script>
// new CircleType(document.getElementById('planet-name')).radius(180);
AOS.init();
/*window.addEventListener('scroll', function() {
const globe1 = document.getElementById('glob1');
const smallGlobe = document.getElementById('small-globe');
const section1 = document.getElementById('section1');
const section2 = document.getElementById('section2');
const section1Top = section1.getBoundingClientRect().top;
const section2Top = section2.getBoundingClientRect().top;
const windowHeight = window.innerHeight;
// When Section 1 starts to scroll out of view, move the globe to the center
if (section1Top < 0) {
globe1.style.transform = 'scale(0.5) translate(0, 80vw)';
globe1.style.position = 'fixed';
globe1.style.left = '70%';
globe1.style.top = '50%';
setTimeout(() => {
globe1.style.transform = 'translate(-50%, -50%) scale(0.5)';
globe1.classList.add('reshap');
}, 10);
//globe1.style.transition-timing-function = 'ease-in';
//globe1.style.transform = 'translate(-50%, -50%) scale(0.5)';
//globe1.classList.add('reshap');
smallGlobe.style.transform = 'translate(0, 0)';
section2.style.visibility = 'visible';
} else {
// Reset the globe back to its original position in section 1
globe1.style.position = 'absolute';
globe1.style.top = '';
globe1.style.left = '';
globe1.style.transform = 'scale(1) translateX(0)';
globe1.style.transition = 'transform 2s ease, top 2s ease, left 2s ease';
globe1.classList.remove('reshap');
smallGlobe.style.transform = 'translate(50px, 50px)';
section2.style.visibility = 'hidden';
}
});
*/document.addEventListener('DOMContentLoaded', function() {
const sectionTitle = document.getElementById('section-title');
const sectionSubtitle = document.getElementById('section-subtitle');
const sectionDescription = document.getElementById('section-description');
const planetLinks = document.querySelectorAll('.planet-links a');
// Diameter and radius of the circular arc
const arcDiameter = 550; // Arc diameter
const arcRadius = arcDiameter / 2;
// Positioning planets in an arc
const totalPlanets = planetLinks.length;
const angleStep = 180 / (totalPlanets - 1); // Angle step to distribute planets across the arc (half-circle)
planetLinks.forEach((link, index) => {
const angle = -180 + (angleStep * index);//const angle = angleStep * index - 90; // Calculate the angle for each planet (-90° to start at the bottom center)
// Calculate X and Y positions based on the angle
const x = arcRadius * Math.cos((angle * Math.PI) / 180);
const y = arcRadius * Math.sin((angle * Math.PI) / 180);
// Rotate each link based on its angle to follow the arc curvature
link.style.transform = `translate(${x}px, ${y}px) rotate(${angle + 90}deg)`;
link.style.zIndex = 10;
// Optionally adjust anchor point or text alignment for better visual alignment
link.style.transformOrigin = "center center";
});
// Click event handler for planet links
planetLinks.forEach(link => {
link.addEventListener('click', function(event) {
event.preventDefault(); // Prevent default link behavior
// Remove active state from all planets
planetLinks.forEach(link => link.style.transform = link.style.transform.replace(' translateY(-10px)', ''));
// Set the clicked link to move up slightly
setTimeout(() => {
this.style.transform += ' translateY(-10px)'; // Move the clicked planet up slightly
}, 300); // Delay for the transition effect
// Get data attributes from the clicked link
const planet = this.getAttribute('data-planet');
const description = this.getAttribute('data-description');
// Add transition classes for animation
sectionTitle.classList.add('hidden');
sectionSubtitle.classList.add('hidden');
sectionDescription.classList.add('hidden');
// Wait for transition to finish before updating text
setTimeout(() => {
sectionTitle.textContent = planet;
sectionSubtitle.textContent = description;
sectionDescription.textContent = "Additional information about " + planet;
// Remove transition classes to make them visible again
sectionTitle.classList.remove('hidden');
sectionSubtitle.classList.remove('hidden');
sectionDescription.classList.remove('hidden');
}, 500); // Match this duration with the CSS transition duration
});
});
});
// Initialize CircleType for circular arrangement of planet names
//const circleType = new CircleType(document.getElementById('planet-name')).radius(180);
//$(circleType.element).fitText();
</script>
<script>
// Function to check if an element is in the viewport
function isInViewport(element) {
const rect = element.getBoundingClientRect();
return (
rect.top >= 0 &&
rect.left >= 0 &&
rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
rect.right <= (window.innerWidth || document.documentElement.clientWidth)
);
}
// Trigger animations when section is in view
window.addEventListener('scroll', function() {
const section5 = document.getElementById('section5');
const images = document.querySelectorAll('.satellite-image');
if (isInViewport(section5)) {
section5.querySelector('.image-wrapper').classList.add('rotate-animation');
images.forEach(img => img.classList.add('fade-in'));
}
});
</script>
</body>
</html>