@widelab-nc/widelab 1.1.16 → 1.1.18
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 +5 -13
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -86,15 +86,6 @@ function contactFormOpenAnimation() {
|
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
// Scroll disable
|
|
90
|
-
function disableScrollMenu() {
|
|
91
|
-
const script = document.createElement('script');
|
|
92
|
-
script.src =
|
|
93
|
-
'https://cdn.jsdelivr.net/npm/@finsweet/attributes-scrolldisable@1/scrolldisable.js';
|
|
94
|
-
script.defer = true;
|
|
95
|
-
document.head.appendChild(script);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
89
|
// Hero move to reveal footer
|
|
99
90
|
function revealFooter() {
|
|
100
91
|
const footer = document.querySelector('.is-footer');
|
|
@@ -1025,11 +1016,15 @@ window.changeCheckboxLabelColor = function() {
|
|
|
1025
1016
|
// Contact modal open animation
|
|
1026
1017
|
window.openContactModal = function() {
|
|
1027
1018
|
contactFormOpen.play();
|
|
1019
|
+
document.body.classList.add('is-scroll-off');
|
|
1020
|
+
lenis.stop();
|
|
1028
1021
|
}
|
|
1029
1022
|
|
|
1030
1023
|
// Contact modal close animation
|
|
1031
1024
|
window.closeContactModal = function() {
|
|
1032
|
-
contactFormOpen.timeScale(1).reverse()
|
|
1025
|
+
contactFormOpen.timeScale(1).reverse();
|
|
1026
|
+
document.body.classList.remove('is-scroll-off');
|
|
1027
|
+
lenis.start();
|
|
1033
1028
|
}
|
|
1034
1029
|
|
|
1035
1030
|
// Close contact modal on ESC click
|
|
@@ -1151,7 +1146,4 @@ window.scrollTriggerRefresh = function() {
|
|
|
1151
1146
|
pageTransitionAnimation();
|
|
1152
1147
|
customCursorOnClick();
|
|
1153
1148
|
contactFormOpenAnimation();
|
|
1154
|
-
if (window.innerWidth < 992) {
|
|
1155
|
-
disableScrollMenu();
|
|
1156
|
-
}
|
|
1157
1149
|
});
|