Skip to content

Instantly share code, notes, and snippets.

@wplit
Created January 14, 2021 23:24
Show Gist options
  • Select an option

  • Save wplit/4ebc8d50310dc7675f65eba916b5add5 to your computer and use it in GitHub Desktop.

Select an option

Save wplit/4ebc8d50310dc7675f65eba916b5add5 to your computer and use it in GitHub Desktop.
force carousel builder to continue playing after user interaction (add to carousel builder > advanced > javascript
jQuery(document).ready(function($) {
let $carousel = $('#%%ELEMENT_ID%%').find($('#%%ELEMENT_ID%%').children().data('carousel'));
$carousel.on('pointerUp.flickity', function(event, pointer) {
$carousel.flickity('playPlayer');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment