Smooth scrolling, rotation, pull to refresh, page transition and any motion for the web - 丝般顺滑的触摸运动方案
Smooth scrolling, rotation, pull to refresh, page transition and any motion for the web - 丝般顺滑的触摸运动方案
丝般顺滑的触摸运动方案
Smooth scrolling, rotation, pull to refresh and any motion for the web.
npm install phy-touch…通过对象的实例可以自行运动DOM:
phyTouch.to(value, time, ease)value是必填项time是非必填项,默认值是600ease是非必填项,默认值是先加速后减速的运动函数,CSS版本默认值是cubic-bezier(0.1, 0.57, 0.1, 1)通过对象的实例可以自行停止DOM运动:
phyTouch.stop()This content is released under the MIT License.
暂无开放 Issues,或尚未同步最近议题。