Skip to content

Instantly share code, notes, and snippets.

@nocodesupplyco
Created December 19, 2022 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nocodesupplyco/ab47e7189bea9e5cb3902605226c9fe9 to your computer and use it in GitHub Desktop.
Save nocodesupplyco/ab47e7189bea9e5cb3902605226c9fe9 to your computer and use it in GitHub Desktop.
Swipe Webflow Tabs
<!-- Place this in the before </body> custom code -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.touchswipe/1.6.18/jquery.touchSwipe.min.js"></script>
<script>
$(".w-tab-content").swipe( {
swipeLeft:function(event, direction, distance, duration, fingerCount) {
$(".w-tab-menu a.w--current").next('a').click();
},
swipeRight:function(event, direction, distance, duration, fingerCount) {
$(".w-tab-menu a.w--current").prev('a').click();
},
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment