embla-carousel: Automatic and slow scroll with dragFree
I was wondering if there is a way to slowly auto scroll the content of a carousel with the dragFree option? In order to sort of show to users that there is more content in a nice way.
Kind of something like that, but automatically:

About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 27 (13 by maintainers)
@davidjerleke, you are a code angel! It absolutely does what I had in mind. Thank you 🙌
@raymondarevalo no need to look for temporary CodeSandbox solutions anymore. A plugin for this is finished and will be released very soon. Stay tuned.
Here’s the PR for it:
@davidjerleke no worries. I just found that weird. As I don’t know much about Preact either I just wanted to give it a go, but no big deal really, I switched back to React instead. That would be good for the peeps using it tho, as it’s a super good lightweight alternative to React. Thanks for your help anyway!
@davidjerleke I started the project using Next with React but I tried to use Preact in order to reduce the bundle size, but I feel that it’s causing more issues than giving a lightweight code haha I created a repo replicating my setup: https://github.com/flayks/embla-next-preact As I mentioned, hardly any errors or logging, it only works without the line 35 of the
Scroller.jsxfile. Not a huge deal IMO, but that’s a bit odd.