Created
February 23, 2022 13:04
-
-
Save Flowbaseco/f781787d5fd5ca022018e1d769bff571 to your computer and use it in GitHub Desktop.
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
<style> | |
/* Lock Webflow Scrolling CSS */ | |
html.no-scroll { | |
overflow: hidden; | |
} | |
</style> | |
<!-- Lock Webflow Scrolling Script --> | |
<script type = "text/javascript" > $('.lock-scroll').on('click', toggleScrolling); | |
function toggleScrolling() { | |
$('html').toggleClass('no-scroll'); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment