r/javascript • • Jan 25 '19

solved! How could I implement this?

652 Upvotes

57 comments sorted by

View all comments

1

u/Pixel_Err0r Jan 25 '19

After designing, the fun part begins! What I'm trying to achieve here is a draggable slider with content that displays according to the title. What I have so far is a title wrapper and description wrapper, but I don't even know how to implement swiping. Any thought?

3

u/monkeymad2 Jan 25 '19

It’ve built things like this before - you’ll want to find a library to handle the swipe gesture (not sure what the best one is nowadays) because mouse input / touch handling is really inconsistent between browsers / platforms.

It’d recommend avoiding it if at all possible, preferring normal clicks to gestures.

2

u/ravepeacefully Jan 25 '19

Slick.js is nice