Autoplay jump parameter
See original GitHub issueFeature request is related to
- embla-carousel-autoplay
Is your feature request related to an issue?
There’s no way to utilize the jump parameter that embla.scrollNext()
and embla.scrollPrev()
accepts because these are invoked internally in the autoplay plugin.
Describe the solution you’d like
Add a boolean
jump option that determines the default behaviour - if transitions should jump or not.
const options = { loop: true }
const embla = EmblaCarousel(emblaNode, options, Autoplay({ jump: true }))
Also allow to override the default jump behaviour using the autoplay API:
const embla = EmblaCarousel(emblaNode, options, Autoplay({ jump: true })) // autoplay will jump when it starts here
embla.plugins().autoplay.play(false) // <-- override defaultJump and start animating
Additional context
Feel free to join the conversation if you have anything to add.
Thanks
Thanks @th-km for the idea 💡:
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:6 (6 by maintainers)
Top Results From Across the Web
YouTube Embedded Players and Player Parameters
For example, you can automatically play videos using the autoplay parameter or cause a video to play repeatedly using the loop parameter.
Read more >Autoplay - Embla Carousel
Start autoplay. Set the jump parameter to true when you want autoplay to do instant slide transitions when advancing. Please note that providing...
Read more >Youtube URL parameters for video: Autoplay, Start, End, Loop ...
Youtube URL parameters for video: Autoplay, Start, End, Loop (repeat), Subtitle & Co. – List · URL parameters: How it works · Turn...
Read more >Autoplay Considerations - Brightcove Player Documentation
The Brightcove Player supports five possible values for autoplay. In the HTML5 spec, autoplay is a boolean attribute - it id either on...
Read more >Autoplay parameter for Youtube · Issue #103 - GitHub
How can I pass a parameter to auto play youtube video? When I attach it to the url in href - it gets...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @th-km,
Not a problem. We all have a life 😉.
I just released this feature with v7.0.2. Give it a go if you want and let me know if it works as expected. Additionally, if you have a moment, I would very much appreciate if you could check out the documentation additions and see if the explanations make sense to you or if you would like to amend something there:
Thanks and cheers!
Best, David
Happy to hear that @th-km 👍🏻. Thanks for confirming. Enjoy! Closing this issue as resolved then.