-
-
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
This file contains hidden or 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
| 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