动画
在小程序中,通常可以使用 CSS 渐变 和 CSS 动画 来创建简易的界面动画。
同时,还可以使用 wx.createAnimation 接口来动态创建简易的动画效果。
动画过程中,可以使用 bindtransitionend
bindanimationstart
bindanimationiteration
bindanimationend
来监听动画事件。
事件名 | 含义 |
---|---|
transitionend | CSS 渐变结束或 wx.createAnimation 结束一个阶段 |
触控事件
-
touchstart 手指触摸
-
touchmove 手指触摸后移动
-
touchcancel 手指触摸动作被打断,如弹窗和来电提醒
-
touchend 手指触摸动作结束
-
tap 手指触摸后离开
-
longtap 手指触摸后,超过350ms离开
有关触控组件的更多说明:https://www.cnblogs.com/nosqlcoco/p/5954453.html