How to Swipe between surfaces in Famo.us?

前端 未结 2 1527
醉梦人生
醉梦人生 2021-01-03 08:07

Using the following Famo.us example code that adds 10 surfaces displayed vertically with 100% width and height, how can I add functionality to swipe between them, similar to

2条回答
  •  抹茶落季
    2021-01-03 08:19

    Have you looked into the EdgeSwapper? I think it might be an example of what you're looking for: https://github.com/Famous/examples/blob/master/src/examples/views/EdgeSwapper/example.js

提交回复
热议问题