如何使图层显示没有过渡

时间:2017-04-27 03:35:51

标签: framerjs

我正在模拟Snapchat。当您按下“相机页面”图层上的相机按钮时,应该会转到“编辑照片”页面(另一个图层)。如何使“编辑照片页面”图层看起来像Snapchat没有.showNext.overlayTop

代码

# Create FlowComponent, show layerA 
flow = new FlowComponent
flow.showNext(step1)

snapchat.cameraButton.on Events.Click, ->   
   flow.showNext(step2)

相互作用

enter image description here Edit Photo Page

1 个答案:

答案 0 :(得分:1)

animate中的false设置为showNext即可立即转换。

使用您的代码:

snapchat.cameraButton.on Events.Click, ->   
   flow.showNext(step2, animate: false)