-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathorbs.html
565 lines (565 loc) · 24.2 KB
/
orbs.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
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
<!DOCTYPE html><!-- This site was created in Webflow. https://webflow.com --><!-- Last Published: Wed Feb 05 2025 09:21:05 GMT+0000 (Coordinated Universal Time) -->
<html data-wf-page="66a0a2e766fa9335a1953bb1" data-wf-site="668e5792bf664077c93af899">
<head>
<meta charset="utf-8">
<title>Orbs</title>
<meta content="Orbs" property="og:title">
<meta content="Orbs" property="twitter:title">
<meta content="width=device-width, initial-scale=1" name="viewport">
<meta content="Webflow" name="generator">
<link href="css/normalize.css" rel="stylesheet" type="text/css">
<link href="css/webflow.css" rel="stylesheet" type="text/css">
<link href="css/vulpem-venture.webflow.css" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com" rel="preconnect">
<link href="https://fonts.gstatic.com" rel="preconnect" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js" type="text/javascript"></script>
<script type="text/javascript">WebFont.load({ google: { families: ["Azeret Mono:100,200,300,regular,500,600,700,800,900"] }});</script>
<script type="text/javascript">!function(o,c){var n=c.documentElement,t=" w-mod-";n.className+=t+"js",("ontouchstart"in o||o.DocumentTouch&&c instanceof DocumentTouch)&&(n.className+=t+"touch")}(window,document);</script>
<link href="images/favicon.jpg" rel="shortcut icon" type="image/x-icon">
<link href="images/webclip.jpg" rel="apple-touch-icon"><!-- Custom Scrollbar. -->
<style>
body::-webkit-scrollbar {
width: 8px;
}
body::-webkit-scrollbar-track {
background-color: rgba(0, 0, 0, .05);
-webkit-border-radius: 20px;
border-radius: 20px;
}
body::-webkit-scrollbar-thumb {
-webkit-border-radius: 20px;
border-radius: 20px;
background: rgb(54, 49, 49);
}
</style>
<!-- Keep this css code to improve the font quality -->
<style>
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-o-font-smoothing: antialiased;
}
</style>
<!-- Scrolling text animations -->
<style>
[text-split] {opacity: 0;}
html.w-editor [text-split] {opacity: 1;}
.word {
overflow: hidden;
padding-bottom: 0.1em;
margin-bottom: -0.1em;
transform-origin: bottom;
}
</style>
<!-- Encrypted-text Animation -->
<script>
document.addEventListener('DOMContentLoaded', function() {
const specialChars = '!@#$%^&*()_+{}:"<>?[];,./';
function getRandomChar() {
return specialChars[Math.floor(Math.random() * specialChars.length)];
}
function encryptText(text) {
return text.split('').map(char => getRandomChar()).join('');
}
const links = document.querySelectorAll('.encrypted-link');
const triggers = document.querySelectorAll('.hover-trigger');
if (links.length === triggers.length) {
triggers.forEach((trigger, index) => {
const link = links[index];
const originalText = link.textContent;
let animationRunning = false;
trigger.addEventListener('mouseenter', function() {
if (animationRunning) return;
animationRunning = true;
const encryptedText = encryptText(originalText);
let idx = 0;
const interval = setInterval(function() {
link.textContent = link.textContent.split('').map((char, i) => {
return i <= idx ? originalText[i] : getRandomChar();
}).join('');
idx++;
if (idx >= originalText.length) {
clearInterval(interval);
setTimeout(function() {
link.textContent = originalText;
animationRunning = false;
}, 750); // 1 seconde avant de revenir au texte original
}
}, 50); // Change de caractère toutes les 75ms
});
trigger.addEventListener('mouseleave', function() {
link.textContent = originalText; // Réinitialiser le texte quand la souris quitte
animationRunning = false; // Permettre de rejouer l'animation
});
});
} else {
console.error('Le nombre de déclencheurs et de liens ne correspond pas.');
}
});
</script>
<!-- Disable current link -->
<script>
// Désactiver les liens ayant la classe 'w--current'
document.addEventListener('DOMContentLoaded', function() {
var currentLinks = document.querySelectorAll('.w--current');
currentLinks.forEach(function(link) {
// Désactiver l'événement de clic
link.addEventListener('click', function(event) {
event.preventDefault();
event.stopPropagation();
});
// Ajouter un style pour indiquer que le lien est désactivé (facultatif)
link.style.pointerEvents = 'none';
link.style.cursor = 'default';
});
});
</script>
<!-- [Attributes by Finsweet] Disable scrolling -->
<script defer="" src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-scrolldisable@1/scrolldisable.js"></script>
<style>
html.lenis {
height: auto;
}
.lenis.lenis-smooth {
scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
overscroll-behavior: contain;
}
.lenis.lenis-stopped {
overflow: hidden;
}
</style>
</head>
<body>
<div class="page-wrapper">
<div class="global-styles w-embed">
<style>
/* Set color style to inherit */
.inherit-color * {
color: inherit;
}
/* Focus state style for keyboard navigation for the focusable elements */
*[tabindex]:focus-visible,
input[type="file"]:focus-visible {
outline: 0.125rem solid #4d65ff;
outline-offset: 0.125rem;
}
/* Get rid of top margin on first element in any rich text element */
.w-richtext > :not(div):first-child, .w-richtext > div:first-child > :first-child {
margin-top: 0 !important;
}
/* Get rid of bottom margin on last element in any rich text element */
.w-richtext>:last-child, .w-richtext ol li:last-child, .w-richtext ul li:last-child {
margin-bottom: 0 !important;
}
/* Prevent all click and hover interaction with an element */
.pointer-events-off {
pointer-events: none;
}
/* Enables all click and hover interaction with an element */
.pointer-events-on {
pointer-events: auto;
}
/* Create a class of .div-square which maintains a 1:1 dimension of a div */
.div-square::after {
content: "";
display: block;
padding-bottom: 100%;
}
/* Make sure containers never lose their center alignment */
.container-medium,.container-small, .container-large {
margin-right: auto !important;
margin-left: auto !important;
}
/*
Make the following elements inherit typography styles from the parent and not have hardcoded values.
Important: You will not be able to style for example "All Links" in Designer with this CSS applied.
Uncomment this CSS to use it in the project. Leave this message for future hand-off.
*/
/*
a,
.w-input,
.w-select,
.w-tab-link,
.w-nav-link,
.w-dropdown-btn,
.w-dropdown-toggle,
.w-dropdown-link {
color: inherit;
text-decoration: inherit;
font-size: inherit;
}
*/
/* Apply "..." after 3 lines of text */
.text-style-3lines {
display: -webkit-box;
overflow: hidden;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}
/* Apply "..." after 2 lines of text */
.text-style-2lines {
display: -webkit-box;
overflow: hidden;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
/* Adds inline flex display */
.display-inlineflex {
display: inline-flex;
}
/* These classes are never overwritten */
.hide {
display: none !important;
}
@media screen and (max-width: 991px) {
.hide, .hide-tablet {
display: none !important;
}
}
@media screen and (max-width: 767px) {
.hide-mobile-landscape{
display: none !important;
}
}
@media screen and (max-width: 479px) {
.hide-mobile{
display: none !important;
}
}
.margin-0 {
margin: 0rem !important;
}
.padding-0 {
padding: 0rem !important;
}
.spacing-clean {
padding: 0rem !important;
margin: 0rem !important;
}
.margin-top {
margin-right: 0rem !important;
margin-bottom: 0rem !important;
margin-left: 0rem !important;
}
.padding-top {
padding-right: 0rem !important;
padding-bottom: 0rem !important;
padding-left: 0rem !important;
}
.margin-right {
margin-top: 0rem !important;
margin-bottom: 0rem !important;
margin-left: 0rem !important;
}
.padding-right {
padding-top: 0rem !important;
padding-bottom: 0rem !important;
padding-left: 0rem !important;
}
.margin-bottom {
margin-top: 0rem !important;
margin-right: 0rem !important;
margin-left: 0rem !important;
}
.padding-bottom {
padding-top: 0rem !important;
padding-right: 0rem !important;
padding-left: 0rem !important;
}
.margin-left {
margin-top: 0rem !important;
margin-right: 0rem !important;
margin-bottom: 0rem !important;
}
.padding-left {
padding-top: 0rem !important;
padding-right: 0rem !important;
padding-bottom: 0rem !important;
}
.margin-horizontal {
margin-top: 0rem !important;
margin-bottom: 0rem !important;
}
.padding-horizontal {
padding-top: 0rem !important;
padding-bottom: 0rem !important;
}
.margin-vertical {
margin-right: 0rem !important;
margin-left: 0rem !important;
}
.padding-vertical {
padding-right: 0rem !important;
padding-left: 0rem !important;
}
/* Apply "..." at 100% width */
.truncate-width {
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* Removes native scrollbar */
.no-scrollbar {
-ms-overflow-style: none;
overflow: -moz-scrollbars-none;
}
.no-scrollbar::-webkit-scrollbar {
display: none;
}
</style>
</div>
<main class="main-wrapper">
<div class="page-sections_wrapper">
<div class="page-sections">
<div class="padding-section-medium">
<div class="animation_title">
<h3>Glows Animations</h3>
</div>
<div class="sphere-group">
<div class="sphere-test-wrap">
<div class="sphere-top-wrap_test">
<div data-w-id="edb17aa1-a45b-27db-cc3d-e39dff252157" style="opacity:1;-webkit-transform:translate3d(0, 0, 0) scale3d(0.8, 0.8, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);-moz-transform:translate3d(0, 0, 0) scale3d(0.8, 0.8, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);-ms-transform:translate3d(0, 0, 0) scale3d(0.8, 0.8, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);transform:translate3d(0, 0, 0) scale3d(0.8, 0.8, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);filter:blur(0px)" class="sphere-glowl_top-wrapper_test"></div>
<div data-w-id="edb17aa1-a45b-27db-cc3d-e39dff252158" style="opacity:0.9" class="sphere-radial_top-wrapper_test"></div>
</div>
<div class="animation_title">
<h5>Glow 1: Smooth Shine </h5>
</div>
</div>
<div id="w-node-_173845c3-8fd0-66d9-2337-1a0c88dea7da-a1953bb1" class="sphere-test-wrap">
<div id="w-node-edb17aa1-a45b-27db-cc3d-e39dff25215c-a1953bb1" class="sphere-top-wrap_test">
<div data-w-id="edb17aa1-a45b-27db-cc3d-e39dff25215d" class="sphere-glowl_top-wrapper_test"></div>
<div data-w-id="edb17aa1-a45b-27db-cc3d-e39dff25215e" style="opacity:0.9" class="sphere-radial_top-wrapper_test"></div>
</div>
<div class="animation_title">
<h5>Glow 2: Just Rotate</h5>
</div>
</div>
<div id="w-node-_06fb77fd-b59e-7878-4966-91cdf74a9502-a1953bb1" class="sphere-test-wrap">
<div id="w-node-edb17aa1-a45b-27db-cc3d-e39dff252162-a1953bb1" class="sphere-top-wrap_test">
<div data-w-id="edb17aa1-a45b-27db-cc3d-e39dff252163" style="opacity:0.8;-webkit-transform:translate3d(0, 0, 0) scale3d(0.5, 0.5, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);-moz-transform:translate3d(0, 0, 0) scale3d(0.5, 0.5, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);-ms-transform:translate3d(0, 0, 0) scale3d(0.5, 0.5, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);transform:translate3d(0, 0, 0) scale3d(0.5, 0.5, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);filter:blur(0px)" class="sphere-glowl_top-wrapper_test"></div>
<div data-w-id="edb17aa1-a45b-27db-cc3d-e39dff252164" style="opacity:0.9" class="sphere-radial_top-wrapper_test"></div>
</div>
<div class="animation_title">
<h5>Glow 3: Pulse</h5>
</div>
</div>
<div id="w-node-_7913e2e1-bd39-d925-55b6-b14c604ea1ef-a1953bb1" class="sphere-test-wrap">
<div id="w-node-edb17aa1-a45b-27db-cc3d-e39dff252168-a1953bb1" class="sphere-top-wrap_test">
<div data-w-id="edb17aa1-a45b-27db-cc3d-e39dff252169" style="opacity:1" class="sphere-glowl_top-wrapper_test"></div>
<div data-w-id="edb17aa1-a45b-27db-cc3d-e39dff25216a" style="opacity:0.9" class="sphere-radial_top-wrapper_test"></div>
</div>
<div class="animation_title">
<h5>Glow 4: Flash</h5>
</div>
</div>
</div>
</div>
<div class="padding-section-medium">
<div class="animation_title">
<h3>ORB Animations</h3>
</div>
<div class="sphere-group">
<div id="w-node-_9eb24293-cd6a-4af5-efb9-22df49fe4902-a1953bb1" class="sphere-test-wrap">
<div id="w-node-a1984387-9eab-8ace-5214-685c19f44343-a1953bb1" class="sphere-top-wrap_test">
<div class="sphere-glowl_top-wrapper_test"></div>
<div data-w-id="a1984387-9eab-8ace-5214-685c19f44345" style="filter:brightness(100%)" class="sphere-radial_top-wrapper_test"></div>
</div>
<div class="animation_title">
<h5>Orb 1: Smooth Shine</h5>
</div>
</div>
<div id="w-node-b65a6203-d924-2099-b9a5-b689267a7d5c-a1953bb1" class="sphere-test-wrap">
<div id="w-node-_22af7adf-4961-1016-32e0-2aca9a4f9d51-a1953bb1" class="sphere-top-wrap_test">
<div class="sphere-glowl_top-wrapper_test"></div>
<div data-w-id="22af7adf-4961-1016-32e0-2aca9a4f9d53" style="filter:blur(0px) brightness(100%)" class="sphere-radial_top-wrapper_test"></div>
</div>
<div class="animation_title">
<h5>Orb 2: Shine & Blur</h5>
</div>
</div>
<div id="w-node-_11176633-235e-5a64-f047-b97948b4976c-a1953bb1" class="sphere-test-wrap">
<div id="w-node-_1779b60b-7260-e5c9-f588-b14ca31bf610-a1953bb1" class="sphere-top-wrap_test">
<div class="sphere-glowl_top-wrapper_test"></div>
<div data-w-id="1779b60b-7260-e5c9-f588-b14ca31bf612" style="-webkit-transform:translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);-moz-transform:translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);-ms-transform:translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);transform:translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0)" class="sphere-radial_top-wrapper_test"></div>
</div>
<div class="animation_title">
<h5>Orb 2: Scale</h5>
</div>
</div>
<div id="w-node-b806be5a-77ac-4879-36d4-890a2218f683-a1953bb1" class="sphere-test-wrap">
<div id="w-node-_01d57592-d3d3-dab0-9d0e-48066f97347e-a1953bb1" class="sphere-top-wrap_test">
<div class="sphere-glowl_top-wrapper_test"></div>
<div data-w-id="01d57592-d3d3-dab0-9d0e-48066f973480" style="filter:brightness(100%)" class="sphere-radial_top-wrapper_test"></div>
</div>
<div class="animation_title">
<h5>Orb 4: Flash</h5>
</div>
</div>
</div>
</div>
<div class="padding-section-medium">
<div class="animation_title">
<h3>combinations examples</h3>
</div>
<div class="sphere-group">
<div id="w-node-a39b21f6-888f-cbfb-86cb-6a1e7146c069-a1953bb1" class="sphere-test-wrap">
<div id="w-node-_3e22cae8-ef53-7fe2-4019-08721326602f-a1953bb1" class="sphere-top-wrap_test">
<div data-w-id="3e22cae8-ef53-7fe2-4019-087213266030" style="opacity:1;-webkit-transform:translate3d(0, 0, 0) scale3d(0.8, 0.8, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);-moz-transform:translate3d(0, 0, 0) scale3d(0.8, 0.8, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);-ms-transform:translate3d(0, 0, 0) scale3d(0.8, 0.8, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);transform:translate3d(0, 0, 0) scale3d(0.8, 0.8, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);filter:blur(0px)" class="sphere-glowl_top-wrapper_test"></div>
<div data-w-id="3e22cae8-ef53-7fe2-4019-087213266031" style="filter:brightness(100%)" class="sphere-radial_top-wrapper_test"></div>
</div>
<div class="animation_title">
<h5>Orb 1 + Glow 1 = Smooth Shine</h5>
</div>
</div>
<div id="w-node-_6ebbeea9-4de2-9963-8eba-9e45335cdb66-a1953bb1" class="sphere-test-wrap">
<div id="w-node-_3e22cae8-ef53-7fe2-4019-087213266035-a1953bb1" class="sphere-top-wrap_test">
<div data-w-id="3e22cae8-ef53-7fe2-4019-087213266036" class="sphere-glowl_top-wrapper_test"></div>
<div data-w-id="3e22cae8-ef53-7fe2-4019-087213266037" style="filter:blur(0px) brightness(100%);opacity:0.9" class="sphere-radial_top-wrapper_test"></div>
</div>
<div class="animation_title">
<h5>Orb 2 + Glow 2 = Shine & Blur</h5>
</div>
</div>
<div id="w-node-_6d633aea-4351-ce9c-ef73-d12c8d5fdf0e-a1953bb1" class="sphere-test-wrap">
<div id="w-node-_3e22cae8-ef53-7fe2-4019-08721326603b-a1953bb1" class="sphere-top-wrap_test">
<div data-w-id="3e22cae8-ef53-7fe2-4019-08721326603c" style="opacity:0.8;-webkit-transform:translate3d(0, 0, 0) scale3d(0.5, 0.5, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);-moz-transform:translate3d(0, 0, 0) scale3d(0.5, 0.5, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);-ms-transform:translate3d(0, 0, 0) scale3d(0.5, 0.5, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);transform:translate3d(0, 0, 0) scale3d(0.5, 0.5, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);filter:blur(0px)" class="sphere-glowl_top-wrapper_test"></div>
<div data-w-id="3e22cae8-ef53-7fe2-4019-08721326603d" style="-webkit-transform:translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);-moz-transform:translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);-ms-transform:translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0);transform:translate3d(0, 0, 0) scale3d(1, 1, 1) rotateX(0) rotateY(0) rotateZ(0) skew(0, 0)" class="sphere-radial_top-wrapper_test"></div>
</div>
<div class="animation_title">
<h5>Orb 3 + Glow 3 = Scale & Pulse</h5>
</div>
</div>
<div id="w-node-_7d794b18-a43b-7118-a624-147604d55daa-a1953bb1" class="sphere-test-wrap">
<div id="w-node-_3e22cae8-ef53-7fe2-4019-087213266041-a1953bb1" class="sphere-top-wrap_test">
<div data-w-id="3e22cae8-ef53-7fe2-4019-087213266042" style="opacity:1" class="sphere-glowl_top-wrapper_test"></div>
<div data-w-id="3e22cae8-ef53-7fe2-4019-087213266043" style="filter:brightness(100%)" class="sphere-radial_top-wrapper_test"></div>
</div>
<div class="animation_title">
<h5>Orb 4 + Glow 4 = Flash</h5>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
<script src="https://d3e54v103j8qbb.cloudfront.net/js/jquery-3.5.1.min.dc5e7f18c8.js?site=668e5792bf664077c93af899" type="text/javascript" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="js/webflow.js" type="text/javascript"></script><!-- Scrolling text animations -->
<script src="https://cdn.jsdelivr.net/gh/timothydesign/script/split-type.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.3/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.3/ScrollTrigger.min.js"></script>
<script>
window.addEventListener("DOMContentLoaded", (event) => {
// Split text into spans
let typeSplit = new SplitType("[text-split]", {
types: "words, chars",
tagName: "span"
});
// Link timelines to scroll position
function createScrollTrigger(triggerElement, timeline) {
// Reset tl when scroll out of view past bottom of screen
ScrollTrigger.create({
trigger: triggerElement,
start: "top bottom",
onLeaveBack: () => {
timeline.progress(0);
timeline.pause();
}
});
// Play tl when scrolled into view (60% from top of screen)
ScrollTrigger.create({
trigger: triggerElement,
start: "top 98%",
onEnter: () => timeline.play()
});
}
$("[words-slide-up]").each(function (index) {
let tl = gsap.timeline({ paused: true });
tl.from($(this).find(".word"), { opacity: 0, yPercent: 100, duration: 0.5, ease: "back.out(2)", stagger: { amount: 0.5 } });
createScrollTrigger($(this), tl);
});
$("[words-rotate-in]").each(function (index) {
let tl = gsap.timeline({ paused: true });
tl.set($(this).find(".word"), { transformPerspective: 1000 });
tl.from($(this).find(".word"), { rotationX: -90, duration: 0.6, ease: "power2.out", stagger: { amount: 0.6 } });
createScrollTrigger($(this), tl);
});
$("[words-slide-from-right]").each(function (index) {
let tl = gsap.timeline({ paused: true });
tl.from($(this).find(".word"), { opacity: 0, x: "1em", duration: 0.6, ease: "power2.out", stagger: { amount: 0.2 } });
createScrollTrigger($(this), tl);
});
$("[letters-slide-up]").each(function (index) {
let tl = gsap.timeline({ paused: true });
tl.from($(this).find(".char"), { yPercent: 100, duration: 0.2, ease: "power1.out", stagger: { amount: 0.6 } });
createScrollTrigger($(this), tl);
});
$("[letters-slide-down]").each(function (index) {
let tl = gsap.timeline({ paused: true });
tl.from($(this).find(".char"), { yPercent: -120, duration: 0.3, ease: "power1.out", stagger: { amount: 0.7 } });
createScrollTrigger($(this), tl);
});
$("[letters-fade-in]").each(function (index) {
let tl = gsap.timeline({ paused: true });
tl.from($(this).find(".char"), { opacity: 0, duration: 0.2, ease: "power1.out", stagger: { amount: 0.8 } });
createScrollTrigger($(this), tl);
});
$("[letters-fade-in-random]").each(function (index) {
let tl = gsap.timeline({ paused: true });
tl.from($(this).find(".char"), { opacity: 0, duration: 0.07, ease: "power1.out", stagger: { amount: 0.5, from: "random" } });
createScrollTrigger($(this), tl);
});
$("[scrub-each-word]").each(function (index) {
let tl = gsap.timeline({
scrollTrigger: {
trigger: $(this),
start: "top 90%",
end: "top center",
scrub: true
}
});
tl.from($(this).find(".word"), { opacity: 0.2, duration: 0.2, ease: "power1.out", stagger: { each: 0.4 } });
});
// Avoid flash of unstyled content
gsap.set("[text-split]", { opacity: 1 });
});
</script>
<script src="https://cdn.jsdelivr.net/gh/studio-freight/[email protected]/bundled/lenis.min.js"></script>
<script>
// LENIS SMOOTH SCROLL
let lenis;
if (Webflow.env("editor") === undefined) {
lenis = new Lenis({
lerp: 0.1,
wheelMultiplier: 0.7,
gestureOrientation: "vertical",
normalizeWheel: false,
smoothTouch: false
});
function raf(time) {
lenis.raf(time);
requestAnimationFrame(raf);
}
requestAnimationFrame(raf);
}
$("[data-lenis-start]").on("click", function () {
lenis.start();
});
$("[data-lenis-stop]").on("click", function () {
lenis.stop();
});
$("[data-lenis-toggle]").on("click", function () {
$(this).toggleClass("stop-scroll");
if ($(this).hasClass("stop-scroll")) {
lenis.stop();
} else {
lenis.start();
}
});
</script>
</body>
</html>