@widelab-nc/widelab 1.1.13 → 1.1.15

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.13",
3
+ "version": "1.1.15",
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
@@ -1101,13 +1101,23 @@ window.contactUsHide = function(e) {
1101
1101
  duration: 0.15,
1102
1102
  ease: 'loader2',
1103
1103
  scrollTrigger: {
1104
- trigger: '.bottom-wrapper',
1105
- start: 'bottom top',
1104
+ trigger: '#bottomWrapperOverlay',
1105
+ start: 'top center',
1106
1106
  toggleActions: 'play none none reverse',
1107
1107
  },
1108
1108
  }));
1109
1109
  }
1110
1110
 
1111
+ window.scrollTriggerRefresh = function() {
1112
+ function refreshScrollTrigger() {
1113
+ ScrollTrigger.refresh();
1114
+ }
1115
+ const observer = new MutationObserver(refreshScrollTrigger);
1116
+ const targetNode = document.querySelector('.section.is-post-body');
1117
+ const config = { attributes: true, childList: true, subtree: true };
1118
+ observer.observe(targetNode, config);
1119
+ }
1120
+
1111
1121
  // !!!!!!!!! Keep this Alpine init at the end !!!!!!!!!
1112
1122
  window.Webflow ||= [];
1113
1123
  window.Webflow.push(() => {