SSENSE / vue-carousel

A flexible, responsive, touch-friendly carousel for Vue.js
https://ssense.github.io/vue-carousel/
MIT License
1.72k stars 504 forks source link

Feature Request: initial page to display #470

Open ghost opened 5 years ago

ghost commented 5 years ago

Would be nice if it's possible to configure the initial page to display after the carousel is loaded. I made a fork for my own project. Feel free to use the code I wrote if it can be a new feature for the project.

feature: https://github.com/KenyoKaneda/vue-carousel/commit/eddb17fcbd084672bdc34248f607a23e26fd7f78

docs: https://github.com/KenyoKaneda/vue-carousel/commit/77443547aee84447703d1fe5bf95a3df16c97dfa

ghost commented 5 years ago

I guess I could use navigateTo prop, but it causes unnecessary animation when moving to the initial page. I'll use it in background and display the carousel once the initial navigation is done. Hope to get official feature on this.

reon777 commented 5 years ago

I think this is effective

<carousel
:navigateTo="[3, false]"
>