nir9 / itemslide

JavaScript Touch Carousel Library with Zero Dependencies
https://itemslide.org
MIT License
647 stars 85 forks source link

Set start and end Point #34

Closed Jeff0029 closed 9 years ago

Jeff0029 commented 9 years ago

I was wondering if someone know how to make the first item stick to the left instead of the middle when selected (same for the right). I found a way to do it but it cut the velocity to 0 when the animation reach the limit.

Thank you.

nir9 commented 9 years ago

Hi this option is currently unavailable but I do plan to add this in future updates.

Jeff0029 commented 9 years ago

in the meantime I was able to nearly do it myself! lol When my work is done I could show you my additions.

nir9 commented 9 years ago

Oh cool - if you want you can also fork this repo, add your additions and then create a pull request.

Jeff0029 commented 9 years ago

Hello nir9

I'm almost done setting up my pull request when I was testing the addSlide method. Is it already broken? When I call it it adds the slide inside the last

  • .

    Everything else is smooth sailing.

  • nir9 commented 9 years ago

    Yah looks like the method is already broken i'll fix it next update, thanks for the heads up.