@widelab-nc/widelab 1.1.44 → 1.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
- package/src/index.js +56 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -514,6 +514,62 @@ window.customCursorTextUpdate = function(el) {
|
|
|
514
514
|
};
|
|
515
515
|
|
|
516
516
|
|
|
517
|
+
window.hueAwardsAnimation = function(e) {
|
|
518
|
+
let mm = gsap.matchMedia();
|
|
519
|
+
mm.add("(max-width: 991px)", () => {
|
|
520
|
+
const logoItems = e.querySelectorAll('.clients_collection_item_mask.is-3');
|
|
521
|
+
|
|
522
|
+
logoItems.forEach((maskEl) => {
|
|
523
|
+
const imgEl = maskEl.querySelector('.skills-item_img');
|
|
524
|
+
if (!imgEl) return;
|
|
525
|
+
|
|
526
|
+
gsap.set(maskEl, { height: '100%' });
|
|
527
|
+
|
|
528
|
+
gsap.to(maskEl, {
|
|
529
|
+
scrollTrigger: {
|
|
530
|
+
trigger: maskEl,
|
|
531
|
+
start: 'top bottom-=25%',
|
|
532
|
+
},
|
|
533
|
+
height: '0%',
|
|
534
|
+
duration: 0.7,
|
|
535
|
+
ease: 'loader2',
|
|
536
|
+
});
|
|
537
|
+
|
|
538
|
+
gsap.from(imgEl, {
|
|
539
|
+
scrollTrigger: {
|
|
540
|
+
trigger: maskEl,
|
|
541
|
+
start: 'top bottom-=25%',
|
|
542
|
+
},
|
|
543
|
+
opacity: 0,
|
|
544
|
+
delay: 0.4,
|
|
545
|
+
duration: 0.45,
|
|
546
|
+
ease: 'loader2',
|
|
547
|
+
});
|
|
548
|
+
});
|
|
549
|
+
});
|
|
550
|
+
};
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
window.navbarThemeSwitcher = function (e) {
|
|
557
|
+
var navbar = document.getElementById('heroNavbar');
|
|
558
|
+
if (!navbar) return;
|
|
559
|
+
ScrollTrigger.create({
|
|
560
|
+
trigger: e,
|
|
561
|
+
start: 'top center',
|
|
562
|
+
end: 'bottom center',
|
|
563
|
+
onEnter: () => navbar.classList.add('is-dark'),
|
|
564
|
+
onEnterBack: () => navbar.classList.add('is-dark'),
|
|
565
|
+
onLeave: () => navbar.classList.remove('is-dark'),
|
|
566
|
+
onLeaveBack: () => navbar.classList.remove('is-dark'),
|
|
567
|
+
});
|
|
568
|
+
};
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
|
|
517
573
|
|
|
518
574
|
window.stickyServices = function (e) {
|
|
519
575
|
var wrapper = e;
|