ismail9k / vue3-carousel

Vue 3 carousel component
https://ismail9k.github.io/vue3-carousel/
MIT License
660 stars 164 forks source link

Not animate slides if v-model is not first slide #183

Closed alisaliso closed 1 year ago

alisaliso commented 2 years ago

Is your feature request related to a problem? Please describe. Hi! I'm using your library and I have a minor issue with it. When I'm clicking on the image preview and open slider, instead of showing the image I clicked the slider scrolls to this image and the scroll is very noticeable.

Describe the solution you'd like You can add a prop like noAnimateScrollTo that will show image without scroll animation

Describe alternatives you've considered I've tried to remove scroll animation via css but it wasn't successful.

AlotOfBlahaj commented 1 year ago

same question

vaov1999 commented 1 year ago

same(

ismail9k commented 1 year ago

As a workaround, you can set the transition value to zero

toooni commented 1 year ago

@ismail9k This is only a workaround if the animation bothers you. Lazy-loaded images will still get "visible" for the browser and are being loaded. This is IMO the real issue.