@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/dist/index.js +1 -1
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
- package/src/index.js +12 -2
package/package.json
CHANGED
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: '
|
|
1105
|
-
start: '
|
|
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(() => {
|