davidjerleke / embla-carousel

A lightweight carousel library with fluid motion and great swipe precision.
https://www.embla-carousel.com
MIT License
6.02k stars 180 forks source link

Prev/Next button documentation for Vue #445

Closed Thinkro closed 1 year ago

Thinkro commented 1 year ago

Feature request is related to

Describe the solution you'd like

Example with all features of Embla

E.g. the const dots = computed(() => emblaApi.value?.scrollSnapList() || []); for dots, what's the similar for prev/next buttons?

Thanks for your great work!

davidjerleke commented 1 year ago

Hi @Thinkro,

Thank you for your feature request. I've had a similar question about achieving prev/next and dot navigation with embla-carousel-vue before. Check this CodeSandbox in this comment out and see if that's the example you're looking for?


About the examples page missing Vue examples - I have that on my to do list for this project. But I'm the sole developer on this project and a huge to do so things are progressing slowly. I can't give you an ETA on when they will be available. Until then, you can browse the documentation website API reference together with the react examples. It might help you on the right track and see how things are solved there.

Best, David

davidjerleke commented 1 year ago

@Thinkro did you check the CodeSandbox out?

Thinkro commented 1 year ago

@davidjerleke yes, i just forgot to comment. Thank you!

davidjerleke commented 1 year ago
gilesbutler commented 1 year ago

Thanks for the example @davidjerleke 👍 super handy!

davidjerleke commented 1 year ago

I'm glad it helped @gilesbutler. One day I'm hoping to get time to setup Vue examples on the examples page.

Cheers, David