forked from patowari/vfxb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
727 lines (643 loc) · 29.6 KB
/
index.html
File metadata and controls
727 lines (643 loc) · 29.6 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
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VFXB - AI-powered editor for everyone</title>
<link rel="stylesheet" href="styles.css">
</head>
<body style="position:relative; background:#111;">
<!-- Background Video -->
<div class="body-bg-video-wrapper">
<video id="bg-video" autoplay loop muted playsinline></video>
</div>
<script>
document.getElementById('bg-video').src = "background-video.mp4";
</script>
<!-- Custom Cursor -->
<div class="cursor"></div>
<div class="cursor-follower"></div>
<div class="cursor-text">Try Now</div>
<!-- Particles Background -->
<div class="particles" id="particles"></div>
<!-- Mobile Menu -->
<div class="mobile-menu" id="mobileMenu">
<button class="close-menu" onclick="toggleMobileMenu()">×</button>
<div class="dropdown">
<a href="#" class="nav-item">Products</a>
<div class="dropdown-content">
<a href="products.html" class="dropdown-item">
Video Editor
<div class="item-desc">Professional video editing tools</div>
</a>
<a href="products.html" class="dropdown-item">
Audio Editor
<div class="item-desc">Advanced audio processing</div>
</a>
<a href="products.html" class="dropdown-item">
Image Editor
<div class="item-desc">Photo editing and enhancement</div>
</a>
</div>
</div>
<a href="ai-tools.html" class="nav-item hot">AI tools</a>
<a href="solutions.html" class="nav-item">Solutions</a>
<a href="resources.html" class="nav-item">Resources</a>
<a href="#" class="nav-item">NewsRoom</a>
<a href="#" class="btn btn-outline">Try VFXB Online</a>
<a href="#" class="btn btn-primary">Download</a>
</div>
<!-- Header -->
<header class="header">
<div class="logo">
<img src="vfxb.png" alt="VFXB Logo" style="height:35px;vertical-align:middle;margin-right:8px;">
</div>
<nav class="nav">
<div class="dropdown">
<a href="#" class="nav-item">Products</a>
<div class="dropdown-content">
<a href="products.html" class="dropdown-item">
Video Editor
<div class="item-desc">Professional video editing tools</div>
</a>
<a href="products.html" class="dropdown-item">
Audio Editor
<div class="item-desc">Advanced audio processing</div>
</a>
<a href="products.html" class="dropdown-item">
Image Editor
<div class="item-desc">Photo editing and enhancement</div>
</a>
<a href="products.html" class="dropdown-item">
Motion Graphics
<div class="item-desc">Create stunning animations</div>
</a>
</div>
</div>
<div class="dropdown">
<a href="#" class="nav-item hot">AI tools</a>
<div class="dropdown-content">
<a href="ai-tools.html" class="dropdown-item">
AI Video Generator
<div class="item-desc">Create videos from text</div>
</a>
<a href="ai-tools.html" class="dropdown-item">
AI Voice Clone
<div class="item-desc">Clone any voice instantly</div>
</a>
<a href="ai-tools.html" class="dropdown-item">
AI Captions
<div class="item-desc">Auto-generate captions</div>
</a>
<a href="ai-tools.html" class="dropdown-item">
AI Avatar
<div class="item-desc">Create AI-powered avatars</div>
</a>
</div>
</div>
<div class="dropdown">
<a href="#" class="nav-item">Solutions</a>
<div class="dropdown-content">
<a href="solutions.html" class="dropdown-item">
For Creators
<div class="item-desc">Tools for content creators</div>
</a>
<a href="solutions.html" class="dropdown-item">
For Business
<div class="item-desc">Enterprise video solutions</div>
</a>
<a href="solutions.html" class="dropdown-item">
For Education
<div class="item-desc">Educational video tools</div>
</a>
<a href="solutions.html" class="dropdown-item">
For Marketing
<div class="item-desc">Marketing video creation</div>
</a>
</div>
</div>
<div class="dropdown">
<a href="#" class="nav-item">Resources</a>
<div class="dropdown-content">
<a href="resources.html" class="dropdown-item">
Tutorials
<div class="item-desc">Learn video editing</div>
</a>
<a href="resources.html" class="dropdown-item">
Templates
<div class="item-desc">Pre-made video templates</div>
</a>
<a href="resources.html" class="dropdown-item">
Support
<div class="item-desc">Get help and support</div>
</a>
<a href="resources.html" class="dropdown-item">
Community
<div class="item-desc">Join our community</div>
</a>
</div>
</div>
<a href="#" class="nav-item">NewsRoom</a>
</nav>
<div class="header-buttons">
<a href="#" class="btn btn-outline">Try VFXB Online</a>
<a href="#" class="btn btn-primary">Download</a>
</div>
<button class="mobile-menu-btn" onclick="toggleMobileMenu()">☰</button>
</header>
<!-- Main Content -->
<main class="main-content">
<div class="badge pulse">All-in-one</div>
<h1 class="main-title float">AI-powered editor<br>for everyone</h1>
<p class="subtitle">Think bigger. Edit faster.</p>
<div class="main-buttons">
<a href="#" class="btn btn-primary btn-large">Download</a>
<a href="#" class="btn btn-outline btn-large">Try online</a>
</div>
</main>
<!-- Features Section -->
<section class="features-section">
<div class="features-container">
<button class="nav-arrow prev" onclick="scrollFeatures('left')">‹</button>
<div class="features-scroll" id="featuresScroll">
<div class="feature-card">
<div class="feature-preview"></div>
<h3 class="feature-title">AI video maker</h3>
</div>
<div class="feature-card">
<div class="feature-preview"></div>
<h3 class="feature-title">AI captions</h3>
</div>
<div class="feature-card">
<div class="feature-preview"></div>
<h3 class="feature-title">Link to video</h3>
</div>
<div class="feature-card">
<div class="feature-preview"></div>
<h3 class="feature-title">Avatar video</h3>
</div>
<div class="feature-card">
<div class="feature-preview"></div>
<h3 class="feature-title">Text to speech</h3>
</div>
<div class="feature-card">
<div class="feature-preview"></div>
<h3 class="feature-title">Dreamina</h3>
</div>
</div>
<button class="nav-arrow next" onclick="scrollFeatures('right')">›</button>
</div>
</section>
<!-- Expanded Content Section -->
<section class="expanded-content">
<div class="ai-floating-elements">
<div class="ai-floating-circle"></div>
<div class="ai-floating-circle"></div>
<div class="ai-floating-circle"></div>
</div>
<div class="ai-video-container">
<div class="ai-hero">
<h1>Editing just got<br>smarter and simpler</h1>
<p>Design to make your editing easier than ever.</p>
</div>
<div class="ai-features-grid">
<div class="ai-feature-card" onclick="aiPlayDemo(this)">
<div class="ai-video-placeholder">
<span>✨ AI Magic</span>
</div>
<div class="ai-feature-content">
<h2>Smart AI video maker</h2>
<p>Remember spending hours on a single video? Those days are over! Our AI handles everything from scripting your ideas to adding perfect captions. It's like having a professional video editor who never sleeps and works at lightning speed.</p>
<button class="ai-cta-button ai-pulse">Try It Free</button>
</div>
</div>
<div class="ai-feature-card" onclick="aiPlayDemo(this)">
<div class="ai-feature-content">
<h2>One-Click Excellence</h2>
<p>Why juggle between 10 different apps when you can create professional videos in one place? From thumbnail generation to voice synthesis, everything you need is right here. It's designed for real people with real deadlines.</p>
<button class="ai-cta-button">Start Creating</button>
</div>
<div class="ai-video-placeholder">
<span>🎬 Your Story</span>
</div>
</div>
<div class="ai-feature-card" onclick="aiPlayDemo(this)">
<div class="ai-video-placeholder">
<span>🚀 Results</span>
</div>
<div class="ai-feature-content">
<h2>Results That Speak</h2>
<p>Whether you're a YouTuber, marketer, or educator, our AI understands your audience. It analyzes trends, suggests improvements, and helps your content perform better. Because great videos deserve great results.</p>
<button class="ai-cta-button">See Results</button>
</div>
</div>
</div>
</div>
<!-- Integrate index2.html here -->
<!--
<iframe
src="index2.html"
style="width:100%;min-height:100vh;border:none;background:#111;display:block;margin:0 auto;border-radius:20px;box-shadow:0 8px 32px 0 rgba(31,38,135,0.12);"
title="VFXB AI Toolkit">
</iframe>
-->
</section>
<section class="expanded-content-two">
<div class="section-header">
<span class="section-tag">Generative AI</span>
<h2 class="section-title">Other EPIC AI Generative Tools!</h2>
</div>
<div class="tools-container">
<button class="scroll-btn prev" onclick="scrollTools(-1)">‹</button>
<div class="tools-grid" id="toolsGrid">
<div class="tool-card">
<div class="card-image remove-object"></div>
<div class="card-content">
<h3 class="card-title">Remove Object</h3>
<p class="card-description">Remove any unwanted object from your image. Just drawing a line around it.</p>
</div>
</div>
<div class="tool-card">
<div class="card-image remove-background"></div>
<div class="card-content">
<h3 class="card-title">AI Remove Background</h3>
<p class="card-description">One-click background remover, let the AI do the boring work.</p>
</div>
</div>
<div class="tool-card">
<div class="card-image face-swap"></div>
<div class="card-content">
<h3 class="card-title">AI Face Swap</h3>
<p class="card-description">With the AI face swapper you become anyone you desire: a superhero, a heartthrob, a law enforcer, or an intellectual. Or just switch faces with a friend, there are no limits.</p>
</div>
</div>
<div class="tool-card">
<div class="card-image super-scale"></div>
<div class="card-content">
<h3 class="card-title">AI Super Scale</h3>
<p class="card-description">Use AI to upscale images and keep a superb quality.</p>
</div>
</div>
<div class="tool-card">
<div class="card-image super-sharp"></div>
<div class="card-content">
<h3 class="card-title">AI Super Sharp</h3>
<p class="card-description">Enhance image clarity and details, bring a level of precision to your digital photography.</p>
</div>
</div>
<div class="tool-card">
<div class="card-image super-sharp"></div>
<div class="card-content">
<h3 class="card-title">AI Super Sharp</h3>
<p class="card-description">Enhance image clarity and details, bring a level of precision to your digital photography.</p>
</div>
</div>
<div class="tool-card">
<div class="card-image super-sharp"></div>
<div class="card-content">
<h3 class="card-title">AI Super Sharp</h3>
<p class="card-description">Enhance image clarity and details, bring a level of precision to your digital photography.</p>
</div>
</div>
<div class="tool-card">
<div class="card-image super-sharp"></div>
<div class="card-content">
<h3 class="card-title">AI Super Sharp</h3>
<p class="card-description">Enhance image clarity and details, bring a level of precision to your digital photography.</p>
</div>
</div>
</div>
<button class="scroll-btn next" onclick="scrollTools(1)">›</button>
</div>
</section>
<script>
let currentScroll = 0;
const cardWidth = 256; // 240px card + 16px gap
let maxScroll = 0;
let isDragging = false;
let startX = 0;
let startScrollLeft = 0;
function updateScrollButtons() {
const prevBtn = document.querySelector('.scroll-btn.prev');
const nextBtn = document.querySelector('.scroll-btn.next');
prevBtn.disabled = currentScroll <= 0;
nextBtn.disabled = currentScroll >= maxScroll;
}
function calculateMaxScroll() {
const container = document.querySelector('.tools-container');
const grid = document.querySelector('.tools-grid');
const containerWidth = container.offsetWidth;
const gridWidth = grid.scrollWidth;
maxScroll = Math.max(0, gridWidth - containerWidth);
updateScrollButtons();
}
function scrollTools(direction) {
const container = document.querySelector('.tools-container');
const containerWidth = container.offsetWidth;
const scrollAmount = Math.min(cardWidth * 1.5, containerWidth * 0.6);
currentScroll += direction * scrollAmount;
currentScroll = Math.max(0, Math.min(currentScroll, maxScroll));
document.getElementById('toolsGrid').style.transform = `translateX(-${currentScroll}px)`;
updateScrollButtons();
}
function smoothScrollTo(targetScroll) {
currentScroll = Math.max(0, Math.min(targetScroll, maxScroll));
document.getElementById('toolsGrid').style.transform = `translateX(-${currentScroll}px)`;
updateScrollButtons();
}
// Initialize on load
window.addEventListener('load', () => {
calculateMaxScroll();
});
// Recalculate on resize
window.addEventListener('resize', () => {
calculateMaxScroll();
if (currentScroll > maxScroll) {
currentScroll = maxScroll;
document.getElementById('toolsGrid').style.transform = `translateX(-${currentScroll}px)`;
}
});
// Enhanced touch and mouse drag support
const toolsGrid = document.querySelector('.tools-grid');
// Mouse events
toolsGrid.addEventListener('mousedown', (e) => {
isDragging = true;
startX = e.pageX;
startScrollLeft = currentScroll;
toolsGrid.style.cursor = 'grabbing';
toolsGrid.style.transition = 'none';
});
document.addEventListener('mousemove', (e) => {
if (!isDragging) return;
e.preventDefault();
const walk = (e.pageX - startX) * 1.5;
const newScroll = startScrollLeft - walk;
smoothScrollTo(newScroll);
});
document.addEventListener('mouseup', () => {
if (isDragging) {
isDragging = false;
toolsGrid.style.cursor = 'grab';
toolsGrid.style.transition = 'transform 0.5s cubic-bezier(0.4, 0, 0.2, 1)';
}
});
// Touch events
let touchStartX = 0;
let touchStartScrollLeft = 0;
toolsGrid.addEventListener('touchstart', (e) => {
touchStartX = e.touches[0].clientX;
touchStartScrollLeft = currentScroll;
toolsGrid.style.transition = 'none';
}, { passive: true });
toolsGrid.addEventListener('touchmove', (e) => {
const touchX = e.touches[0].clientX;
const walk = (touchStartX - touchX) * 1.2;
const newScroll = touchStartScrollLeft + walk;
smoothScrollTo(newScroll);
}, { passive: true });
toolsGrid.addEventListener('touchend', () => {
toolsGrid.style.transition = 'transform 0.5s cubic-bezier(0.4, 0, 0.2, 1)';
});
// Prevent context menu on long press
toolsGrid.addEventListener('contextmenu', (e) => {
e.preventDefault();
});
// Wheel scroll support
toolsGrid.addEventListener('wheel', (e) => {
e.preventDefault();
const direction = e.deltaY > 0 ? 1 : -1;
scrollTools(direction * 0.5);
}, { passive: false });
// Mobile Menu Toggle
function toggleMobileMenu() {
const mobileMenu = document.getElementById('mobileMenu');
mobileMenu.classList.toggle('active');
}
// Features Scroll
function scrollFeatures(direction) {
const container = document.getElementById('featuresScroll');
const cardWidth = 300;
if (direction === 'left') {
container.scrollLeft -= cardWidth;
} else {
container.scrollLeft += cardWidth;
}
}
// Custom Cursor (only for non-touch devices)
if (window.matchMedia("(hover: hover) and (pointer: fine)").matches) {
const cursor = document.querySelector('.cursor');
const cursorFollower = document.querySelector('.cursor-follower');
const cursorText = document.querySelector('.cursor-text');
let mouseX = 0;
let mouseY = 0;
let followerX = 0;
let followerY = 0;
document.addEventListener('mousemove', (e) => {
mouseX = e.clientX;
mouseY = e.clientY;
cursor.style.left = mouseX + 'px';
cursor.style.top = mouseY + 'px';
cursorText.style.left = mouseX + 'px';
cursorText.style.top = (mouseY - 50) + 'px';
});
function updateFollower() {
followerX += (mouseX - followerX) * 0.1;
followerY += (mouseY - followerY) * 0.1;
cursorFollower.style.left = followerX + 'px';
cursorFollower.style.top = followerY + 'px';
requestAnimationFrame(updateFollower);
}
updateFollower();
// Show "Try Now" only over .features-section
const featuresSection = document.querySelector('.features-section');
featuresSection.addEventListener('mouseenter', () => {
cursorText.classList.add('show');
});
featuresSection.addEventListener('mouseleave', () => {
cursorText.classList.remove('show');
});
// Interactive elements cursor effects
const interactiveElements = document.querySelectorAll('.btn, .feature-card, .nav-item, .dropdown-item');
interactiveElements.forEach(element => {
element.addEventListener('mouseenter', () => {
cursor.style.transform = 'scale(1.5)';
cursorFollower.style.transform = 'scale(1.5)';
});
element.addEventListener('mouseleave', () => {
cursor.style.transform = 'scale(1)';
cursorFollower.style.transform = 'scale(1)';
});
});
}
// Particles
function createParticles() {
const particlesContainer = document.getElementById('particles');
const particleCount = window.innerWidth < 768 ? 25 : 50;
for (let i = 0; i < particleCount; i++) {
const particle = document.createElement('div');
particle.className = 'particle';
particle.style.left = Math.random() * 100 + '%';
particle.style.top = Math.random() * 100 + '%';
particle.style.animationDelay = Math.random() * 3 + 's';
particlesContainer.appendChild(particle);
}
}
// Initialize particles
createParticles();
// Button click effects
document.querySelectorAll('.btn').forEach(btn => {
btn.addEventListener('click', (e) => {
e.preventDefault();
// Create ripple effect
const ripple = document.createElement('span');
const rect = btn.getBoundingClientRect();
const size = Math.max(rect.width, rect.height);
const x = e.clientX - rect.left - size / 2;
const y = e.clientY - rect.top - size / 2;
ripple.style.cssText = `
position: absolute;
width: ${size}px;
height: ${size}px;
left: ${x}px;
top: ${y}px;
background: rgba(255, 255, 255, 0.3);
border-radius: 50%;
transform: scale(0);
animation: ripple 0.6s ease-out;
pointer-events: none;
`;
btn.style.position = 'relative';
btn.style.overflow = 'hidden';
btn.appendChild(ripple);
setTimeout(() => {
ripple.remove();
}, 600);
// Simulate action
setTimeout(() => {
alert('Feature coming soon! This is a demo.');
}, 300);
});
});
// Add ripple animation
const style = document.createElement('style');
style.textContent = `
@keyframes ripple {
to {
transform: scale(2);
opacity: 0;
}
}
`;
document.head.appendChild(style);
// Feature card interactions
document.querySelectorAll('.feature-card').forEach(card => {
card.addEventListener('click', () => {
const title = card.querySelector('.feature-title').textContent;
alert(`${title} feature selected! This is a demo.`);
});
});
// Parallax effect on scroll
window.addEventListener('scroll', () => {
const scrolled = window.pageYOffset;
const parallaxElements = document.querySelectorAll('.float');
parallaxElements.forEach(element => {
const speed = 0.2;
element.style.transform = `translateY(${scrolled * speed}px)`;
});
// EVU logo reveal effect
const evuSection = document.querySelector('.evu-logo-section');
const evuLogo = document.querySelector('.evu-logo');
const rect = evuSection.getBoundingClientRect();
if (rect.top < window.innerHeight && rect.bottom > 0) {
const progress = Math.max(0, Math.min(1, (window.innerHeight - rect.top) / window.innerHeight));
evuLogo.style.transform = `scale(${0.5 + progress * 0.5}) translateY(${(1 - progress) * 100}px)`;
evuLogo.style.opacity = progress;
}
});
// Dropdown menu interactions
document.querySelectorAll('.dropdown-item').forEach(item => {
item.addEventListener('click', (e) => {
e.preventDefault();
const href = item.getAttribute('href');
if (href && href !== '#') {
window.location.href = href;
}
});
});
// Auto-scroll features
let autoScrollInterval;
function startAutoScroll() {
if (window.innerWidth > 768) {
autoScrollInterval = setInterval(() => {
const container = document.getElementById('featuresScroll');
const maxScroll = container.scrollWidth - container.clientWidth;
if (container.scrollLeft >= maxScroll) {
container.scrollLeft = 0;
} else {
container.scrollLeft += 300;
}
}, 4000);
}
}
function stopAutoScroll() {
clearInterval(autoScrollInterval);
}
// Start auto-scroll after page loads
setTimeout(startAutoScroll, 3000);
// Stop auto-scroll on user interaction
const featuresScroll = document.getElementById('featuresScroll');
featuresScroll.addEventListener('mouseenter', stopAutoScroll);
featuresScroll.addEventListener('touchstart', stopAutoScroll);
// Close mobile menu when clicking outside
document.addEventListener('click', (e) => {
const mobileMenu = document.getElementById('mobileMenu');
const menuBtn = document.querySelector('.mobile-menu-btn');
if (!mobileMenu.contains(e.target) && !menuBtn.contains(e.target)) {
mobileMenu.classList.remove('active');
}
});
// Intersection Observer for animations
const observerOptions = {
threshold: 0.1,
rootMargin: '0px 0px -50px 0px'
};
const observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.style.opacity = '1';
entry.target.style.transform = 'translateY(0)';
}
});
}, observerOptions);
// Observe elements for animations
document.querySelectorAll('.feature-card, .evu-logo-section').forEach(element => {
element.style.opacity = '0';
element.style.transform = 'translateY(50px)';
element.style.transition = 'opacity 0.6s ease, transform 0.6s ease';
observer.observe(element);
});
// Resize handler
window.addEventListener('resize', () => {
const particlesContainer = document.getElementById('particles');
particlesContainer.innerHTML = '';
createParticles();
});
// Loading animation
window.addEventListener('load', () => {
document.body.style.opacity = '0';
document.body.style.transition = 'opacity 0.5s ease';
setTimeout(() => {
document.body.style.opacity = '1';
}, 100);
});
// Keyboard navigation
document.addEventListener('keydown', (e) => {
if (e.key === 'ArrowLeft') {
scrollFeatures('left');
} else if (e.key === 'ArrowRight') {
scrollFeatures('right');
}
});
</script>
</body>
</html>