kenwheeler / slick

the last carousel you'll ever need
kenwheeler.github.io/slick
MIT License
28.37k stars 5.88k forks source link

Smooth Scrolling instead of snapping to images #1665

Closed ljmarkham closed 8 years ago

ljmarkham commented 9 years ago

I love this slider but I am wondering if it's possible to have smooth scrolling where the slider stops wherever you stop scrolling at, rather than it snapping to certain images. I have tried playing around with the 'SlidesToShow' and 'SlidesToScroll' settings but on mobile devices it still seems to skip or cut off images with the snap function based on the format of images in each slider (I have a bunch of sliders with different format/size images). Is there any way to edit the code so it functions similar to this example - http://www.xtcdesign.com/pages/serenity-kitchen.php - where it's just a smooth scroll based on the mouse/touch scroll. Thank you.

cseeger commented 9 years ago

+1

I'm no longer seeing this behavior after adding center-mode to my init config.

mindmelting commented 9 years ago

+1

ljmarkham commented 9 years ago

Thanks @cseeger but I need my slider to start at the left so center-mode doesn't work for me.

ljmarkham commented 9 years ago

Thank you for a great slider @kenwheeler but just wondering if there is a solution for smooth scrolling rather than the slider snapping to each image? It seems a few people are interested in knowing how to do this. Thank you.

kenwheeler commented 9 years ago

There isn't a way to do this right now, although I could add it.

cseeger commented 9 years ago

It would certainly be a nice feature. 😀

ljmarkham commented 9 years ago

Thanks for your response @kenwheeler. Is it difficult to add? I wasn't sure if there's code that could be added for it. Not well-versed in jquery. Otherwise love the slider.

kenwheeler commented 9 years ago

Well, it's tough. Slick uses duration based animation. So it's like you swipe and it animates in 300ms. Free scroll would be physics based, where you have friction and spring, so you swipe and the velocity decrements and subtracts your left position over time on a requestAnimationFrame loop. Basically, they are different set ups. I plan to switch to the second for slick 2.0. In the meantime, Flickity has a great free scroll feature.

ljmarkham commented 9 years ago

Thanks for the info @kenwheeler. How do I get an update when slick 2.0 comes out?

kenwheeler commented 9 years ago

@ljmarkham I'll ping you

timothywisdom commented 9 years ago

Please "ping" me as well. I love Slick but would like Free Scrolling

kodie commented 9 years ago

+1!

zslabs commented 8 years ago

This would be great!

dirkbartels14050 commented 8 years ago

definitely wanted

jpannone commented 8 years ago

Agreed, this would be an awesome feature! fallout-thumbs

f1nality commented 8 years ago

+1

kenwheeler commented 8 years ago

This is coming in 2.0. The branch is up now if you wanna look. Modernizing everything, and this issue will be possible when I refactor how slide display and movement works.

visualjazz-sbrunno commented 8 years ago

+1

BrianJLennon commented 8 years ago

+1 - just started using slick and LOVE it .... smooth scrolling defo necessary alright. Thanks

PiotrChr commented 7 years ago

Hi, just one quick question. How is the progress with this particular feature or 2.0 release? My team is using your pretty Slick carousel, and we're really hoping for this feature. For now we have to stick to 2 libraries :( (swiper & slick)

akashnigam010 commented 7 years ago

In dire need of this feature.

lopugit commented 7 years ago

+1 on this too! Please really need it, if slick had this, my word.

jncampbell commented 7 years ago

Any update on when this will be added?

jeanjordan commented 7 years ago

+1

EstDiaz commented 7 years ago

+1

kenning commented 7 years ago

+2, i'm very tall

kenwheeler commented 7 years ago

@kenning noted. This has been in progress for a while, I just need to find the time to finish it. Namely, doing it without breaking the existing API, functionality or introducing new bugs, which has proven challenging.

underlircs commented 7 years ago

+1

lopugit commented 7 years ago

do you need any help? I'd love to see it soooooooon

melneff commented 7 years ago

+1

imiMike commented 7 years ago

+1

taraskhvyl commented 7 years ago

+1

erenbertr commented 6 years ago

+1

alexburgos commented 6 years ago

+1

johnylaravel commented 6 years ago

+3, my two girlfriends want it too! Love your slider, thanks

marcomansilla commented 6 years ago

While looking for a solucion found this [1] (not mine). Maybe useful for someone.

[1] https://jsfiddle.net/esedic/g0vn3bfg/

jbugel commented 6 years ago

Love Slick would be very happy with this option

+1

argofgra commented 6 years ago

+1 Also looking for this feature. Might have to pick a different slider because of it.

cigar9 commented 6 years ago

+1

nhhau commented 6 years ago

+1

alexandraleigh commented 6 years ago

+1

pucalennetta commented 6 years ago

+1 I cannot find any physics based carousel. Seems like Slick is the most complete, still lacks this functionality.

trevorwhealy commented 6 years ago

+1

ChristopherMortensen commented 6 years ago

+1

navinweb commented 5 years ago

Sorry, 3 years and this is not complete?

kristiansp commented 5 years ago

From what I've heard, Slick is not really actively developed anymore. I've tried using some alternatives, like Flickity and Swiper, but they each have their limitations (as Slick does for this issue). It's a shame, because I really liked it.

amoralesdesign commented 4 years ago

I NEED THIS

AurelianSpodarec commented 4 years ago

I guess we need to abandon Slick and use Flickity or Swiper then.

kristiansp commented 4 years ago

@AurelianSpodarec FWIW, I've been using TinySlider after giving up on Slick, and have been pretty happy with it.

Jtzuya commented 2 years ago

Snapping unresolved?