ganlanyuan / tiny-slider

Vanilla javascript slider for all purposes.
MIT License
5.26k stars 786 forks source link

Add attraction & friction #293

Closed panec closed 6 years ago

panec commented 6 years ago

Feature Request description:

If it is possible please add support for a better / smooth control of sliding on the mobile devices. Currently it is a bit choppy and not as fluid as mobile users are used to. Flickity slider does this in a very nice way. Adding some more fluidity to the motion will be highly beneficial. Demo link/slider setting:
https://flickity.metafizzy.co/options.html#selectedattraction-friction

Tiny-slider version: 2.8.6 Browser name && version: ALL OS name && version: OSX

ganlanyuan commented 6 years ago

You can achieve this using customized CSS transitions or animations. For example, https://daneden.github.io/animate.css/