Created
October 3, 2023 21:02
-
-
Save memetican/46ff5f23f4c9b9b08adba8d8e01a93cb to your computer and use it in GitHub Desktop.
Shopify + Webflow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
document.addEventListener('DOMContentLoaded', (event) => { | |
const tabs = document.querySelectorAll('[data-w-tab]'); | |
tabs.forEach(tab => { | |
tab.addEventListener('click', () => { | |
setTimeout(() => { | |
window.dispatchEvent(new Event('resize')); | |
}, 200); | |
}); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment