baianat / hooper

🎠 A customizable accessible carousel slider optimized for Vue
https://baianat.github.io/hooper/
MIT License
720 stars 131 forks source link

How to display half of previous slide #61

Closed waghcwb closed 5 years ago

waghcwb commented 5 years ago

Describe the bug This is not a bug itself, in the docs we can see how to show half of the next slide by setting itemsToShow prop to 1.25 for example. But I want to know how can I show half of the previous slide after scrolling the first one.

I want to achieve the following effect, taking a slider with 4 slides:

Screenshots image

ismail9k commented 5 years ago

You can try centerMode="true" and itemsToShow="2", see examples in the documentions.

waghcwb commented 5 years ago

@Abdelrahman3D,

Awesome, that worked. Thank you.