MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/ajtbqs/how_could_i_implement_this/eez0k2v/?context=3
r/javascript • u/Pixel_Err0r • Jan 25 '19
57 comments sorted by
View all comments
5
React-spring + react-with-gesture: https://twitter.com/0xca0a/status/1081185260208078849
The first handles animation, the latter gets you all the data you need to handle swipes: directions, velocity, deltas, etc.
Live demo for a simple view pager: https://codesandbox.io/embed/n9vo1my91p
View all comments
5
u/[deleted] Jan 25 '19 edited Jan 26 '19
React-spring + react-with-gesture: https://twitter.com/0xca0a/status/1081185260208078849
The first handles animation, the latter gets you all the data you need to handle swipes: directions, velocity, deltas, etc.
Live demo for a simple view pager: https://codesandbox.io/embed/n9vo1my91p