-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
781 lines (697 loc) · 56.9 KB
/
index.html
File metadata and controls
781 lines (697 loc) · 56.9 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
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wix Interact - Animation Library</title>
<!-- Fonts: Inter & JetBrains Mono -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;900&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<!-- Helvetica for the new section -->
<link href="https://fonts.cdnfonts.com/css/helvetica-neue-55" rel="stylesheet">
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
fontFamily: {
sans: ['Inter', 'system-ui', 'sans-serif'],
mono: ['JetBrains Mono', 'monospace'],
helvetica: ['Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif'],
},
extend: {
colors: {
'off-black': '#111111',
'apple-gray': '#86868b',
},
fontSize: {
'giant': ['6rem', { lineHeight: '1' }],
// Updated to match new design
'mega': ['11rem', { lineHeight: '0.9' }],
},
letterSpacing: {
'tighter': '-0.04em',
}
}
}
}
</script>
<style>
/* Critical CSS for viewEnter entrance animations - prevents FOUC */
@media (prefers-reduced-motion: no-preference) {
[data-interact-initial='true'] > :first-child:not([data-interact-enter]) {
visibility: hidden;
transform: none;
translate: none;
scale: none;
rotate: none;
}
}
</style>
<!-- Custom Styles -->
<link rel="stylesheet" href="assets/styles.css">
<!-- Code highlighting (highlight.js) -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github.min.css">
</head>
<body class="bg-off-black text-white selection:bg-blue-300 selection:text-off-black">
<!-- Navigation -->
<nav class="fixed top-0 w-full z-50 px-6 py-6 md:px-12 flex justify-between items-center text-white">
<interact-element data-interact-key="nav-logo" data-interact-initial="true">
<div class="text-sm font-medium tracking-wide uppercase">● Interact </div>
</interact-element>
<interact-element data-interact-key="nav-cta" data-interact-initial="true">
<a href="https://github.com/wix/interact" target="_blank" class="text-sm font-medium border border-black px-6 py-2 rounded-full bg-white text-off-black hover:bg-black hover:text-white hover:border-white transition-colors duration-300">
Go to Repository ↗
</a>
</interact-element>
</nav>
<main>
<!-- HERO SECTION -->
<interact-element data-interact-key="hero-section">
<header class="relative min-h-screen flex flex-col justify-center px-6 md:px-12 lg:px-24 pt-20 overflow-hidden bg-off-black">
<!-- INTERACTIVE GRID BACKGROUND -->
<interact-element data-interact-key="hero-grid" class="absolute inset-0 w-full h-full z-0">
<div id="grid-container" class="hero-grid-container absolute inset-0 w-full h-full z-0">
<!-- Javascript will populate this -->
</div>
</interact-element>
<!-- HERO CONTENT -->
<div class="max-w-[90vw] perspective-[1000px] relative z-20">
<interact-element data-interact-key="hero-title" class="perspective-[2500px]">
<div class="inline-block">
<interact-element data-interact-key="hero-line-1" data-interact-initial="true">
<h1 class="text-2xl md:text-3xl lg:text-6xl font-light tracking-tighter text-white mb-2 leading-[0.85]">
Interact
</h1>
</interact-element>
<interact-element data-interact-key="hero-line-2" data-interact-initial="true">
<h1 class="text-6xl md:text-8xl lg:text-mega font-light tracking-tighter text-white leading-[0.85]">
Powers the web with motion.
</h1>
</interact-element>
</div>
</interact-element>
</div>
<div class="mt-16 md:mt-24 max-w-2xl ml-auto mr-0 md:mr-12 relative z-20">
<interact-element data-interact-key="hero-subtitle" data-interact-initial="true">
<div class="opacity-100 p-4 md:p-0">
<p class="text-xl md:text-3xl font-light text-stroke-black text-gray-400 leading-tight tracking-tight mb-8 ">
Create high-performance, beautiful web animations with Interact — from simple micro-interactions to complex, scroll-driven storytelling. Designed for designers and developers alike, with a robust, production-ready API
</p>
<div class="flex gap-4">
<a href="https://github.com/wix/interact" target="_blank" rel="noopener noreferrer" class="px-8 py-4 rounded-full bg-white text-off-black font-medium text-sm hover:bg-gray-200 transition-colors flex items-center gap-2">
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" /></svg>
Github
</a>
<a href="https://www.npmjs.com/package/@wix/interact" target="_blank" rel="noopener noreferrer" class="px-8 py-4 rounded-full border border-white/20 text-white font-medium text-sm hover:bg-white/10 transition-colors flex items-center gap-2"> <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"><path d="M1.763 0c-.966 0-1.75.79-1.75 1.764v20.472c0 .974.784 1.764 1.75 1.764h20.474c.966 0 1.75-.79 1.75-1.764v-20.472c0-.974-.784-1.764-1.75-1.764h-20.474zm12.516 5.5h2.972v13h-2.972v-13zm-9.972 0h2.971v13h-2.971v-13zm5.003 0h2.972v13h-2.972v-13z" /></svg>
NPM
</a>
</div>
</div>
</interact-element>
</div>
</header>
</interact-element>
<!-- PERFORMANCE SECTION (UPDATED) -->
<interact-element data-interact-key="performance-section">
<!-- Decreased height to 100vh -->
<section class="relative h-[100vh] bg-off-black overflow-hidden text-white">
<div class="sticky-wrapper">
<!-- NEW LAYOUT CONTAINER (for 2 columns) -->
<div class="relative z-20 w-full h-full flex flex-col lg:flex-row items-center justify-center lg:justify-between lg:max-w-7xl lg:mx-auto p-6 md:p-12">
<!-- COLUMN 1: TEXT -->
<div class="w-full lg:w-1/2 lg:text-left text-center lg:pr-12 pointer-events-none mb-12 lg:mb-0">
<interact-element data-interact-key="perf-text" data-interact-initial="true">
<h3 class="text-6xl md:text-8xl lg:text-giant font-light tracking-tighter text-white leading-[0.85] lg:text-left">
Unleash high performance web motion
</h3>
<p><br></p>
<p class="text-xl md:text-3xl font-light text-gray-400 leading-tight tracking-tight mb-8 lg:text-left">
Interact runs closer to the browser, delivering smooth, GPU-accelerated animations with minimal overhead. Build complex interactions without compromising site speed — from subtle micro-interactions to full-page storytelling.
</p>
</interact-element>
</div>
<!-- COLUMN 2: TUNNEL VISUALIZATION CONTAINER -->
<div id="tunnel-scene-container" class="w-full lg:w-1/2 h-[400px] lg:h-full max-h-[600px] flex items-center justify-center relative z-0 rounded-xl">
<interact-element data-interact-key="tunnel-root" class="w-full h-full relative">
<!-- The tunnel-container is now constrained to this w-1/2 element -->
<div class="tunnel-container" id="tunnel-container">
<!-- Filled by JS -->
</div>
</interact-element>
</div>
</div>
</div>
</section>
</interact-element>
<!-- CUBE SECTION -->
<interact-element data-interact-key="cube-section">
<section class="relative h-[100vh] bg-off-black overflow-hidden text-white">
<div class="sticky-wrapper">
<!-- LAYOUT CONTAINER -->
<!-- Kept lg:flex-row-reverse from previous edit -->
<div class="relative z-20 w-full h-full flex flex-col lg:flex-row-reverse items-center justify-center lg:justify-between lg:max-w-7xl lg:mx-auto p-6 md:p-12">
<!-- COLUMN 1: TEXT -->
<!-- Kept lg:pl-12 from previous edit -->
<div class="w-full lg:w-1/2 lg:text-left text-center lg:pl-12 pointer-events-none mb-12 lg:mb-0">
<interact-element data-interact-key="perf-text-2" data-interact-initial="true">
<h3 class="text-6xl md:text-8xl lg:text-giant font-light tracking-tighter text-white leading-[0.85] lg:text-left">
Motion That Fits Every Screen
</h3>
<p><br></p>
<p class="text-xl md:text-3xl font-light text-gray-400 leading-tight tracking-tight mb-8 lg:text-left">
Interact enables precise control over responsive animations across screen sizes. Using media queries, you can define how effects behave at different breakpoints, ensuring motion is optimized for every layout.
</p>
</interact-element>
</div>
<!-- COLUMN 2: MENGER SPONGE GRAPHIC -->
<!-- Removed max-h-[600px] to unconfine the vertical space -->
<div id="graphic-container" class="w-full lg:w-1/2 h-[400px] lg:h-full flex items-center justify-center relative z-0 rounded-xl">
<!-- 3D Scene -->
<div class="scene-container-2">
<interact-element data-interact-key="hitbox" class="interact-sponge-wrapper">
<interact-element data-interact-key="sponge" style="display: block; width: 100%; height: 100%;">
<div id="sponge" class="sponge-root">
<!-- Voxels injected here -->
</div>
</interact-element>
</interact-element>
<!-- Label removed as requested -->
</div>
</div>
</div>
</div>
</section>
</interact-element>
<!-- BEAUTIFUL EFFECTS (NEW SCROLL-SCRUBBED LAYOUT) -->
<interact-element data-interact-key="beautiful-section">
<!-- Height set to 300vh for long scrub -->
<section class="relative h-[300vh] bg-off-black text-white" id="beautiful-scroll-track">
<div class="sticky-wrapper scene-container" style="perspective: 500px; flex-direction: column;">
<!-- 1. PYRAMID (Visual Element) -->
<div class="pyramid-wrapper absolute">
<interact-element data-interact-key="pyramid-target" class="w-full h-full">
<div class="pyramid-rotator">
<div class="face front">
<svg viewBox="0 0 100 100">
<polygon points="50,0 100,100 0,100" fill="rgba(0,0,0,0.3)" stroke="white" stroke-width="1.5"/>
</svg>
</div>
<div class="face right">
<svg viewBox="0 0 100 100">
<polygon points="50,0 100,100 0,100" fill="rgba(0,0,0,0.3)" stroke="white" stroke-width="1.5"/>
</svg>
</div>
<div class="face back">
<svg viewBox="0 0 100 100">
<polygon points="50,0 100,100 0,100" fill="rgba(0,0,0,0.3)" stroke="white" stroke-width="1.5"/>
</svg>
</div>
<div class="face left">
<svg viewBox="0 0 100 100">
<polygon points="50,0 100,100 0,100" fill="rgba(0,0,0,0.3)" stroke="white" stroke-width="1.5"/>
</svg>
</div>
<div class="face base">
<svg viewBox="0 0 100 100">
<rect x="0" y="0" width="100" height="100" fill="rgba(0,0,0,0.3)" stroke="white" stroke-width="1.5"/>
</svg>
</div>
</div>
</interact-element>
</div>
<!-- 2. TEXT (Content Layer) -->
<div class="content-layer px-6 md:px-12 max-w-7xl mx-auto">
<!-- Text Container -->
<div class="mt-0">
<!-- Using Mega size defined in tailwind -->
<h3 class="text-5xl md:text-mega font-light tracking-tighter text-white leading-tight mb-8 drop-shadow-[0_0_15px_rgba(0,0,0,0.8)] whitespace-nowrap">
<interact-element data-interact-key="word-1" class="inline-block"><span class="block">Beautiful</span></interact-element>
<interact-element data-interact-key="word-2" class="inline-block"><span class="block">Effects,</span></interact-element><br>
<interact-element data-interact-key="word-3" class="inline-block"><span class="block">Ready</span></interact-element>
<interact-element data-interact-key="word-4" class="inline-block"><span class="block">to</span></interact-element>
<interact-element data-interact-key="word-5" class="inline-block"><span class="block">Use.</span></interact-element>
</h3>
<!-- Description -->
<interact-element data-interact-key="desc-text" class="block">
<p class="text-2xl md:text-4xl font-light text-gray-400 leading-tight tracking-tight mb-8 max-w-4xl mx-auto drop-shadow-lg">
Interact comes with a rich and diverse set of named effects, each designed to bring your website to life. Apply them instantly to text, images, cards, buttons, and entire sections, and create smooth, expressive animations that engage users and elevate every interaction.
</p>
</interact-element>
</div>
<div class="flex flex-col items-center gap-4 transform translate-y-12">
<h2 class="text-sm font-medium tracking-widest uppercase text-white">
Watch it move
</h2>
<!-- Arrow Down -->
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 5v14M19 12l-7 7-7-7"/>
</svg>
</div>
</div>
</div>
</section>
</interact-element>
<!-- CARD SPREAD -->
<interact-element data-interact-key="spread-section">
<section class="relative h-[300vh] bg-white text-off-black" id="spread-section">
<div class="sticky-wrapper">
<div class="relative w-full h-full flex items-center justify-center perspective-[1000px]">
<interact-element data-interact-key="spread-card-0">
<div class="spread-card spread-card-init" style="background-image: url('https://static.wixstatic.com/media/9eca39_e6637e07dfcb4e53b7678a9cef40aa7a~mv2.png');"></div>
</interact-element>
<interact-element data-interact-key="spread-card-1">
<div class="spread-card spread-card-init" style="background-image: url('https://static.wixstatic.com/media/9eca39_2946702578bc4f3196e15f2ea4f93f0b~mv2.png');"></div>
</interact-element>
<interact-element data-interact-key="spread-card-2">
<div class="spread-card spread-card-init" style="background-image: url('https://static.wixstatic.com/media/9eca39_e42d5b5ebaf942f1979ced8700e0d499~mv2.png');"></div>
</interact-element>
<interact-element data-interact-key="spread-card-3">
<div class="spread-card spread-card-init" style="background-image: url('https://static.wixstatic.com/media/9eca39_00ea4d8b1bfc418486b742e3bcdf0e53~mv2.png');"></div>
</interact-element>
<interact-element data-interact-key="spread-card-4">
<div class="spread-card spread-card-init" style="background-image: url('https://static.wixstatic.com/media/9eca39_2ffdb3397a52442a928502e6f447dfc1~mv2.png');"></div>
</interact-element>
</div>
<div class="absolute bottom-12 left-1/2 -translate-x-1/2 text-center z-50">
<button class="px-6 py-3 rounded-full bg-white text-black shadow-lg text-sm font-medium hover:scale-105 transition-transform" onclick="openModal('spread')">View Source Code</button>
</div>
</div>
</section>
</interact-element>
<!-- INTERACTION GRID -->
<section class="bg-white py-32 px-6 md:px-12 lg:px-24 text-off-black relative">
<h2 class="text-6xl md:text-6xl lg:text-6xl font-light tracking-tighter text-off-black text-center leading-[1.20]">Trigger Your Motion</h2>
<p><br></p>
<p class="text-xl md:text-3xl font-light text-gray-600 leading-tight tracking-tight text-center mb-8 min-w-xl max-w-2xl mx-auto ">Animate elements based on user interactions - from micro-motion touches to large-scale expressive interactions.</p>
<div class="flex flex-col lg:gap-40 gap-20 items-center w-full">
<!-- 1. HOVER -->
<div class="w-full h-auto lg:h-[500px] overflow-hidden flex flex-col lg:flex-row rounded-3xl">
<div class="w-full lg:w-5/12 h-[400px] lg:h-full flex items-center justify-center p-6 lg:p-8 bg-white">
<div class="h-full aspect-square bg-[#000] relative overflow-hidden rounded-2xl">
<interact-element data-interact-key="hover-circle-1" class="absolute -bottom-24 -left-24">
<div class="circle cursor-pointer"><div class="fill-circle"></div></div>
</interact-element>
<interact-element data-interact-key="hover-circle-2" class="absolute top-[calc(50%-8rem)] left-[calc(50%-8rem)]">
<div class="circle cursor-pointer"><div class="fill-circle"></div></div>
</interact-element>
<interact-element data-interact-key="hover-circle-3" class="absolute -top-24 -right-24">
<div class="circle cursor-pointer"><div class="fill-circle"></div></div>
</interact-element>
</div>
</div>
<div class="w-full lg:w-7/12 flex flex-col p-6 lg:p-10 h-auto lg:h-full">
<div class="mb-5 shrink-0">
<h1 class="text-xl md:text-3xl font-light text-gray-600 leading-tight tracking-tight ">Hover</h1>
<p class="text-base text-gray-500 font-light leading-relaxed">Add playful hover interactions to buttons, images, or UI elements.</p>
</div>
<div class="flex flex-col bg-gray-50 overflow-hidden lg:flex-grow lg:min-h-0 h-80 lg:h-auto rounded-2xl relative group">
<button class="copy-btn absolute top-4 right-4 z-10 flex items-center gap-2 text-xs font-bold text-gray-400 hover:text-blue-600 transition-colors bg-white/90 backdrop-blur-sm p-2 rounded-lg border border-gray-200 shadow-sm opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 focus:opacity-100 transition-opacity duration-200">
<span class="copy-text">COPY</span>
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="group-hover:stroke-blue-600"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
</button>
<div class="flex-grow overflow-auto p-5 custom-scrollbar bg-gray-50" tabindex="0">
<code class="codeDisplay block text-gray-700 text-xs font-mono leading-relaxed whitespace-pre" data-snippet="hover"></code>
</div>
</div>
</div>
</div>
<!-- 2. CLICK -->
<div class="w-full h-auto lg:h-[500px] overflow-hidden flex flex-col lg:flex-row rounded-3xl">
<div class="w-full lg:w-5/12 h-[400px] lg:h-full flex items-center justify-center p-6 lg:p-8 bg-white">
<div class="h-full aspect-square bg-[#000] relative overflow-hidden rounded-2xl">
<!-- Ripple 2 (Outer - Back) -->
<interact-element data-interact-key="click-ripple-2" class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-10 pointer-events-none">
<div class="circle ripple-init"></div>
</interact-element>
<!-- Ripple 1 (Middle) -->
<interact-element data-interact-key="click-ripple-1" class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-20 pointer-events-none">
<div class="circle ripple-init"></div>
</interact-element>
<!-- Center Circle (Trigger - Front) -->
<interact-element data-interact-key="click-center" class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-30 cursor-pointer">
<div class="circle">
<div class="fill-circle"></div>
</div>
</interact-element>
</div>
</div>
<div class="w-full lg:w-7/12 flex flex-col p-6 lg:p-10 h-auto lg:h-full">
<div class="mb-5 shrink-0">
<h1 class="text-xl md:text-3xl font-light text-gray-600 leading-tight tracking-tight">Click</h1>
<p class="text-base text-gray-500 font-light leading-relaxed">Trigger motion on user clicks for buttons, dialogs, or interactive components.
</p>
</div>
<div class="flex flex-col bg-gray-50 overflow-hidden lg:flex-grow lg:min-h-0 h-80 lg:h-auto rounded-2xl relative group">
<button class="copy-btn absolute top-4 right-4 z-10 flex items-center gap-2 text-xs font-bold text-gray-400 hover:text-blue-600 transition-colors bg-white/90 backdrop-blur-sm p-2 rounded-lg border border-gray-200 shadow-sm opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 focus:opacity-100 transition-opacity duration-200">
<span class="copy-text">COPY</span>
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="group-hover:stroke-blue-600"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
</button>
<div class="flex-grow overflow-auto p-5 custom-scrollbar bg-gray-50" tabindex="0">
<!-- Added whitespace-pre class to preserve formatting -->
<code class="codeDisplay block text-gray-700 text-xs font-mono leading-relaxed whitespace-pre" data-snippet="click"></code>
</div>
</div>
</div>
</div>
<!-- 3. ENTRANCE -->
<div class="w-full h-auto lg:h-[500px] overflow-hidden flex flex-col lg:flex-row rounded-3xl">
<interact-element data-interact-key="entrance-card" class="w-full lg:w-5/12 h-[400px] lg:h-full flex items-center justify-center p-6 lg:p-8 bg-white">
<div class="h-full aspect-square bg-[#000] relative overflow-hidden rounded-2xl">
<!-- Top Circle -->
<interact-element data-interact-key="circle-top" class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-10">
<div class="circle"><div class="fill-circle bg-transparent"></div></div>
</interact-element>
<!-- Right Circle -->
<interact-element data-interact-key="circle-right" class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-20">
<div class="circle"><div class="fill-circle bg-transparent"></div></div>
</interact-element>
<!-- Bottom Circle -->
<interact-element data-interact-key="circle-bottom" class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-30">
<div class="circle"><div class="fill-circle bg-transparent"></div></div>
</interact-element>
<!-- Left Circle -->
<interact-element data-interact-key="circle-left" class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-40">
<div class="circle"><div class="fill-circle bg-transparent"></div></div>
</interact-element>
</div>
</interact-element>
<div class="w-full lg:w-7/12 flex flex-col p-6 lg:p-10 h-auto lg:h-full">
<div class="mb-5 shrink-0">
<h1 class="text-xl md:text-3xl font-light text-gray-600 leading-tight tracking-tight">View Enter (AKA Scroll Triggered Animations and Entrance Animations)</h1>
<p class="text-base text-gray-500 font-light leading-relaxed">Animate elements as they enter the viewport, or pause infinite animations as they exit — perfect for cards, sections, or hero elements.</p>
</div>
<div class="flex flex-col bg-gray-50 overflow-hidden lg:flex-grow lg:min-h-0 h-80 lg:h-auto rounded-2xl relative group">
<button class="copy-btn absolute top-4 right-4 z-10 flex items-center gap-2 text-xs font-bold text-gray-400 hover:text-blue-600 transition-colors bg-white/90 backdrop-blur-sm p-2 rounded-lg border border-gray-200 shadow-sm opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 focus:opacity-100 transition-opacity duration-200">
<span class="copy-text">COPY</span>
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="group-hover:stroke-blue-600"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
</button>
<div class="flex-grow overflow-auto p-5 custom-scrollbar bg-gray-50" tabindex="0">
<!-- Added whitespace-pre class to preserve formatting -->
<code class="codeDisplay block text-gray-700 text-xs font-mono leading-relaxed whitespace-pre" data-snippet="entrance"></code>
</div>
</div>
</div>
</div>
<!-- 5. MOUSE TRACK -->
<div class="w-full h-auto lg:h-[500px] overflow-hidden flex flex-col lg:flex-row rounded-3xl">
<div id="mouseTrack_hit" class="w-full lg:w-5/12 h-[400px] lg:h-full flex items-center justify-center p-6 lg:p-8 bg-white">
<div class="h-full aspect-square relative rounded-2xl perspective-[1200px]"> <!-- Added perspective here -->
<!-- SCENE ROOT -->
<interact-element data-interact-key="mt-scene-root" class="w-full h-full block">
<!-- CARD TARGET (Tilts) -->
<interact-element data-interact-key="mt-card-target" class="w-full h-full block">
<div class="w-full h-full bg-[#000] rounded-2xl overflow-hidden relative flex items-center justify-center preserve-3d">
<!-- CONTENT TARGET (Deep Tilt) -->
<interact-element data-interact-key="mt-content-target" class="w-full h-full flex items-center justify-center block">
<div id="mt-tunnel-mount" class="w-full h-full flex items-center justify-center preserve-3d">
<!-- JS Injects Rings Here -->
</div>
</interact-element>
</div>
</interact-element>
</interact-element>
</div>
</div>
<div class="w-full lg:w-7/12 flex flex-col p-6 lg:p-10 h-auto lg:h-full">
<div class="mb-5 shrink-0">
<h1 class="text-xl md:text-3xl font-light text-gray-600 leading-tight tracking-tight">Pointer movement (AKA Trigger by Mouse)</h1>
<p class="text-base text-gray-500 font-light leading-relaxed">Move elements relative to cursor position for depth and engagement.</p>
</div>
<div class="flex flex-col bg-gray-50 overflow-hidden lg:flex-grow lg:min-h-0 h-80 lg:h-auto rounded-2xl relative group">
<button class="copy-btn absolute top-4 right-4 z-10 flex items-center gap-2 text-xs font-bold text-gray-400 hover:text-blue-600 transition-colors bg-white/90 backdrop-blur-sm p-2 rounded-lg border border-gray-200 shadow-sm opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 focus:opacity-100 transition-opacity duration-200">
<span class="copy-text">COPY</span>
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="group-hover:stroke-blue-600"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
</button>
<div class="flex-grow overflow-auto p-5 custom-scrollbar bg-gray-50" tabindex="0">
<!-- Added whitespace-pre class to preserve formatting -->
<code class="codeDisplay block text-gray-700 text-xs font-mono leading-relaxed whitespace-pre" data-snippet="mouseTrack"></code>
</div>
</div>
</div>
</div>
<!-- 7. SCROLLYTELLING (ATOM SPIN) -->
<!-- Changed overflow-hidden to overflow-clip to fix ViewTimeline -->
<div class="w-full h-auto lg:h-[500px] overflow-clip flex flex-col lg:flex-row rounded-3xl">
<div class="w-full lg:w-5/12 h-[400px] lg:h-full flex items-center justify-center p-6 lg:p-8 bg-white">
<!-- Changed overflow-hidden to overflow-clip here as well -->
<div class="h-full aspect-square bg-[#000] relative overflow-clip rounded-2xl">
<!-- Main wrapper for the scroll trigger -->
<interact-element data-interact-key="scrolly-atom-card" class="w-full h-full block">
<div class="w-full h-full flex items-center justify-center" style="perspective: 1000px;">
<!-- 3D Scene -->
<div class="relative w-64 h-64" style="transform-style: preserve-3d;">
<!-- Orbit 1: Vertical (Y-Axis) -->
<interact-element data-interact-key="orbit-y" class="absolute inset-0 w-full h-full">
<div class="w-full h-full rounded-full border-2 border-white/80"></div>
</interact-element>
<!-- Orbit 2: Horizontal (X-Axis) -->
<interact-element data-interact-key="orbit-x" class="absolute inset-0 w-full h-full">
<div class="w-full h-full rounded-full border-2 border-white/80"></div>
</interact-element>
<!-- Orbit 3: Diagonal 1 -->
<interact-element data-interact-key="orbit-diag-1" class="absolute inset-0 w-full h-full">
<div class="w-full h-full rounded-full border-2 border-white/80"></div>
</interact-element>
<!-- Orbit 4: Diagonal 2 -->
<interact-element data-interact-key="orbit-diag-2" class="absolute inset-0 w-full h-full">
<div class="w-full h-full rounded-full border-2 border-white/80"></div>
</interact-element>
</div>
<!-- Hint Text -->
<div class="absolute bottom-6 w-full text-center text-white/60 text-xs tracking-widest uppercase font-mono pointer-events-none">
Scroll to Spin
</div>
</div>
</interact-element>
</div>
</div>
<div class="w-full lg:w-7/12 flex flex-col p-6 lg:p-10 h-auto lg:h-full">
<div class="mb-5 shrink-0">
<h1 class="text-xl md:text-3xl font-light text-gray-600 leading-tight tracking-tight">Scroll</h1>
<p class="text-base text-gray-500 font-light leading-relaxed">Animate elements or sections based on scroll position to create immersive, narrative-driven experiences.</p>
</div>
<div class="flex flex-col bg-gray-50 overflow-clip lg:flex-grow lg:min-h-0 h-80 lg:h-auto rounded-2xl relative group">
<button class="copy-btn absolute top-4 right-4 z-10 flex items-center gap-2 text-xs font-bold text-gray-400 hover:text-blue-600 transition-colors bg-white/90 backdrop-blur-sm p-2 rounded-lg border border-gray-200 shadow-sm opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 focus:opacity-100 transition-opacity duration-200">
<span class="copy-text">COPY</span>
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="group-hover:stroke-blue-600"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>
</button>
<div class="flex-grow overflow-auto p-5 custom-scrollbar bg-gray-50" tabindex="0">
<!-- Added whitespace-pre class to preserve formatting -->
<code class="codeDisplay block text-gray-700 text-xs font-mono leading-relaxed whitespace-pre" data-snippet="scrollytelling"></code>
</div>
</div>
</div>
</div>
<!-- Gradient Fade to Dark Section -->
</div>
</section>
<!-- NEW SECTION: TAILORED EFFECTS -->
<interact-element data-interact-key="tailored-section">
<section class="py-32 px-6 md:px-12 lg:px-24 bg-off-black text-white relative z-10">
<div class="max-w-7xl mx-auto">
<!-- Title & Description -->
<interact-element data-interact-key="tailored-header" data-interact-initial="true">
<div class="mb-24 text-center max-w-4xl mx-auto">
<h2 class="text-6xl md:text-6xl lg:text-6xl font-light tracking-tighter text-white text-center leading-[0.95]">Effects. Tailored to Your Vision</h2>
<p><br></p>
<p class="text-xl md:text-3xl font-light text-gray-400 leading-tight tracking-tight mb-8 text-center">
From a curated set of ready-to-use effects to fully custom motion, Interact gives you control to tailor animations precisely to your vision.
</p>
</div>
</interact-element>
<!-- 3 Columns -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-12 lg:gap-16 text-left">
<!-- Column 1 -->
<interact-element data-interact-key="tailored-col-1" data-interact-initial="true">
<div>
<h3 class="text-xl md:text-3xl font-light text-white leading-tight tracking-tight text-center">Named Effects <span class="block text-gray-300 text-lg mt-1 font-normal">(Built-In Library)</span></h3>
<p class="text-gray-400 font-light leading-tight text-center">
A rich collection of ready-to-use effects that bring elements to life instantly. Perfect for rapid creation while ensuring polished, consistent motion.
</p>
</div>
</interact-element>
<!-- Column 2 -->
<interact-element data-interact-key="tailored-col-2" data-interact-initial="true">
<div>
<h3 class="text-xl md:text-3xl font-light text-white leading-tight tracking-tight text-center">Custom Keyframes</h3>
<p> <br> </p>
<p class="text-gray-400 font-light leading-tight text-center">
Gain control to design animations with precision. Write your own keyframes and animate any property exactly as needed.
</p>
</div>
</interact-element>
<!-- Column 3 -->
<interact-element data-interact-key="tailored-col-3" data-interact-initial="true">
<div>
<h3 class="text-xl md:text-3xl font-light text-white leading-tight tracking-tight text-center">Custom Effects <span class="block text-gray-300 text-lg mt-1 font-normal">(Full Extensibility)</span></h3>
<p class="text-gray-400 font-light leading-tight text-center">
Build reusable effects or integrate advanced motion systems — including physics-based animations, shaders, and WebGL.
</p>
</div>
</interact-element>
</div>
</div>
</section>
</interact-element>
<!-- HORIZONTAL SCROLL SECTION (Moved to End) -->
<interact-element data-interact-key="h-section">
<section class="relative h-[400vh] bg-off-black text-white" id="horizontal-section">
<div class="sticky-wrapper items-center">
<div class="w-full h-full flex flex-col justify-center">
<div class="px-12 mb-[88px] text-center w-full relative z-10">
<h2 class="text-6xl md:text-6xl lg:text-6xl font-light tracking-tighter text-white text-center leading-[0.95]">Hey, Good Looking</h2>
<p><br></p>
<p class="text-xl md:text-3xl font-light text-gray-400 leading-tight tracking-tight text-center mb-8 min-w-xl max-w-2xl mx-auto">Get inspired by these motion-forward Wix websites created with Interact</p>
</div>
<interact-element data-interact-key="h-track">
<div class="horizontal-track" id="h-track">
<!-- Card 1 -->
<interact-element data-interact-key="h-card-1">
<div class="h-card group" style="background-image: url('https://static.wixstatic.com/media/9eca39_c371f3dae6cc46d9a89789a6f65f5a33~mv2.png')">
<div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"></div>
<div class="absolute bottom-0 left-0 p-8 transform translate-y-4 opacity-0 group-hover:translate-y-0 group-hover:opacity-100 transition-all duration-500 ease-out w-full">
<h3 class="text-2xl font-medium mb-1">Cosmic Scroll</h3>
<a href="https://www.wix.com/website-template/view/html/3534" target="_blank" class="inline-block text-sm border-b border-white pb-0.5 hover:text-gray-300 hover:border-gray-300 transition-colors pointer-events-auto">Go to Website ↗</a>
</div>
</div>
</interact-element>
<!-- Card 2 -->
<interact-element data-interact-key="h-card-2">
<div class="h-card group" style="background-image: url('https://static.wixstatic.com/media/9eca39_db75f5ca33fb48e3b3a734a30bfea317~mv2.png')">
<div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"></div>
<div class="absolute bottom-0 left-0 p-8 transform translate-y-4 opacity-0 group-hover:translate-y-0 group-hover:opacity-100 transition-all duration-500 ease-out w-full">
<h3 class="text-2xl font-medium mb-1">Animal Motion</h3>
<a href="https://www.wix.com/website-template/view/html/3536" target="_blank" class="inline-block text-sm border-b border-white pb-0.5 hover:text-gray-300 hover:border-gray-300 transition-colors pointer-events-auto">Go to Website ↗</a>
</div>
</div>
</interact-element>
<!-- Card 3 -->
<interact-element data-interact-key="h-card-3">
<div class="h-card group" style="background-image: url('https://static.wixstatic.com/media/9eca39_b823d93bb5004e4e8e666937e013002e~mv2.png')">
<div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"></div>
<div class="absolute bottom-0 left-0 p-8 transform translate-y-4 opacity-0 group-hover:translate-y-0 group-hover:opacity-100 transition-all duration-500 ease-out w-full">
<h3 class="text-2xl font-medium mb-1">Year in Review</h3>
<a href="https://www.wix.com/website-template/view/html/3791" target="_blank" class="inline-block text-sm border-b border-white pb-0.5 hover:text-gray-300 hover:border-gray-300 transition-colors pointer-events-auto">Go to Website ↗</a>
</div>
</div>
</interact-element>
<!-- Card 4 -->
<interact-element data-interact-key="h-card-4">
<div class="h-card group" style="background-image: url('https://static.wixstatic.com/media/9eca39_d0e0bc1ae2d04b3da60db5e5f70fbde6~mv2.png')">
<div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"></div>
<div class="absolute bottom-0 left-0 p-8 transform translate-y-4 opacity-0 group-hover:translate-y-0 group-hover:opacity-100 transition-all duration-500 ease-out w-full">
<h3 class="text-2xl font-medium mb-1">Starcast Project</h3>
<a href="https://www.wix.com/website-template/view/html/3538" target="_blank" class="inline-block text-sm border-b border-white pb-0.5 hover:text-gray-300 hover:border-gray-300 transition-colors pointer-events-auto">Go to Website ↗</a>
</div>
</div>
</interact-element>
<!-- Card 5 -->
<interact-element data-interact-key="h-card-5">
<div class="h-card group" style="background-image: url('https://static.wixstatic.com/media/9eca39_6626db560cf841ad86c7313766f95297~mv2.png')">
<div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"></div>
<div class="absolute bottom-0 left-0 p-8 transform translate-y-4 opacity-0 group-hover:translate-y-0 group-hover:opacity-100 transition-all duration-500 ease-out w-full">
<h3 class="text-2xl font-medium mb-1">Product Store</h3>
<a href="https://www.wix.com/website-template/view/html/3517" target="_blank" class="inline-block text-sm border-b border-white pb-0.5 hover:text-gray-300 hover:border-gray-300 transition-colors pointer-events-auto">Go to Website ↗</a>
</div>
</div>
</interact-element>
<!-- Card 6 -->
<interact-element data-interact-key="h-card-6">
<div class="h-card group" style="background-image: url('https://static.wixstatic.com/media/9eca39_c05aed6fa07b4947ae0439c714427a68~mv2.png')">
<div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"></div>
<div class="absolute bottom-0 left-0 p-8 transform translate-y-4 opacity-0 group-hover:translate-y-0 group-hover:opacity-100 transition-all duration-500 ease-out w-full">
<h3 class="text-2xl font-medium mb-1">Software Company</h3>
<a href="https://www.wix.com/website-template/view/html/3608" target="_blank" class="inline-block text-sm border-b border-white pb-0.5 hover:text-gray-300 hover:border-gray-300 transition-colors pointer-events-auto">Go to Website ↗</a>
</div>
</div>
</interact-element>
<!-- Card 7 (New) -->
<interact-element data-interact-key="h-card-7">
<div class="h-card group" style="background-image: url('https://static.wixstatic.com/media/9eca39_4e6846ae7912472b9241de416ef951a8~mv2.png')">
<div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"></div>
<div class="absolute bottom-0 left-0 p-8 transform translate-y-4 opacity-0 group-hover:translate-y-0 group-hover:opacity-100 transition-all duration-500 ease-out w-full">
<h3 class="text-2xl font-medium mb-1">Coming Soon Landing Page</h3>
<a href="https://www.wix.com/website-template/view/html/3748" target="_blank" class="inline-block text-sm border-b border-white pb-0.5 hover:text-gray-300 hover:border-gray-300 transition-colors pointer-events-auto">Go to Website ↗</a>
</div>
</div>
</interact-element>
<!-- Card 8 (New) -->
<interact-element data-interact-key="h-card-8">
<div class="h-card group" style="background-image: url('https://static.wixstatic.com/media/9eca39_e6a7e442d88243e2aec66c05374d8a2f~mv2.png')">
<div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"></div>
<div class="absolute bottom-0 left-0 p-8 transform translate-y-4 opacity-0 group-hover:translate-y-0 group-hover:opacity-100 transition-all duration-500 ease-out w-full">
<h3 class="text-2xl font-medium mb-1">Artist</h3>
<a href="https://www.wix.com/website-template/view/html/3545" target="_blank" class="inline-block text-sm border-b border-white pb-0.5 hover:text-gray-300 hover:border-gray-300 transition-colors pointer-events-auto">Go to Website ↗</a>
</div>
</div>
</interact-element>
<!-- Card 9 (New) -->
<interact-element data-interact-key="h-card-9">
<div class="h-card group" style="background-image: url('https://static.wixstatic.com/media/9eca39_7f4c2bc9aa9141e39bcc7a867506878b~mv2.png')">
<div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"></div>
<div class="absolute bottom-0 left-0 p-8 transform translate-y-4 opacity-0 group-hover:translate-y-0 group-hover:opacity-100 transition-all duration-500 ease-out w-full">
<h3 class="text-2xl font-medium mb-1">Electronics Store</h3>
<a href="https://www.wix.com/website-template/view/html/3745" target="_blank" class="inline-block text-sm border-b border-white pb-0.5 hover:text-gray-300 hover:border-gray-300 transition-colors pointer-events-auto">Go to Website ↗</a>
</div>
</div>
</interact-element>
</div>
</interact-element>
</div>
</div>
</section>
</interact-element>
<!-- PINNED TAG (New Addition) -->
<div class="fixed bottom-0 left-0 z-50 mix-blend-difference pointer-events-none hidden md:block">
<interact-element data-interact-key="pinned-tag" class="pointer-events-auto">
<div class="bg-white text-black py-6 px-2 rounded-l-lg font-regular text-[10px] tracking-widest uppercase shadow-lg transition-colors hover:bg-gray-200 cursor-default" style="writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg);">
Made for Professionals by Professionals
</div>
</interact-element>
</div>
<!-- FOOTER -->
<footer class="bg-off-black text-white py-12 px-6 md:px-12 border-t border-gray-800 flex justify-between items-end">
<interact-element data-interact-key="footer-brand" data-interact-initial="true">
<h2 class="text-lg font-medium uppercase">● Interact</h2>
<p class="text-sm text-gray-400 mt-2">© 2025</p>
</interact-element>
<interact-element data-interact-key="footer-link" data-interact-initial="true">
<div class="flex gap-6">
<a href="https://www.npmjs.com/package/@wix/interact" target="_blank" class="text-lg font-light hover:text-gray-500 transition-colors">NPM</a>
<a href="https://github.com/wix/interact" target="_blank" class="text-lg font-light hover:text-gray-500 transition-colors">Github</a>
</div>
</interact-element>
</footer>
</main>
<!-- LIGHTBOX MODAL -->
<div id="code-modal" class="modal-overlay">
<div class="modal-content text-off-black">
<div class="flex justify-between items-center p-6 border-b border-gray-100 sticky top-0 bg-white">
<h3 class="font-bold text-lg">Source Code</h3>
<button onclick="closeModal()" class="w-8 h-8 flex items-center justify-center hover:bg-gray-100 rounded-full transition-colors">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="2">
<path d="M1 1l12 12M13 1L1 13" />
</svg>
</button>
</div>
<div class="p-0">
<pre class="code-block !p-8 !border-none text-sm"><code id="modal-code" class="language-javascript"></code></pre>
</div>
</div>
</div>
<!-- External JavaScript Files -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<script src="assets/modal.js"></script>
<script src="assets/snippets.js"></script>
<script type="importmap">
{
"imports": {
"@wix/motion": "./assets/lib/motion/motion.js"
}
}
</script>
<script type="module" src="assets/main.mjs"></script>
</body>
</html>