@widelab-nc/widelab 1.1.23 → 1.1.24
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 +1 -1
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
- package/src/index.js +20 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -635,6 +635,26 @@ if (infoBar) {
|
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
637
|
|
|
638
|
+
// Awwwards badge color change
|
|
639
|
+
window.badgeColorChange = function(e) {
|
|
640
|
+
const badgeColorChange = gsap.timeline({
|
|
641
|
+
duration: 0.15,
|
|
642
|
+
ease: 'loader2',
|
|
643
|
+
scrollTrigger: {
|
|
644
|
+
trigger: e,
|
|
645
|
+
start: 'top center',
|
|
646
|
+
end: 'bottom center',
|
|
647
|
+
toggleActions: 'play reverse play reverse',
|
|
648
|
+
},
|
|
649
|
+
});
|
|
650
|
+
badgeColorChange.to(".js-color-bg", {
|
|
651
|
+
fill: '#2E2E2E',
|
|
652
|
+
}, '<');
|
|
653
|
+
badgeColorChange.to(".js-color-text", {
|
|
654
|
+
fill: '#fff',
|
|
655
|
+
}, '<');
|
|
656
|
+
}
|
|
657
|
+
|
|
638
658
|
// Client logos animation
|
|
639
659
|
window.clientLogosAnimation = function(e) {
|
|
640
660
|
const logosStagger = 0.15;
|