A
A
Antibreez2020-04-17 13:08:40
JavaScript
Antibreez, 2020-04-17 13:08:40

How to implement inertial horizontal swipe?

There is a container, inside which is a block of greater length. The indoor unit needs to be swiped horizontally inside the container. I made a simple scroll of the inner block on the touch event. But I would like to add dynamism and make an inertial swipe, when after the swipe is completed, the block still moves for some time and gradually stops.

Are there ready-made solutions for such an implementation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
stas_mihailov, 2020-04-17
@Antibreez

swiper js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question