@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@widelab-nc/widelab",
3
- "version": "1.1.23",
3
+ "version": "1.1.24",
4
4
  "description": "Widelab starter template based on Finsweet template + add-ons.",
5
5
  "homepage": "https://widelab.co",
6
6
  "license": "ISC",
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;