首页福利券提醒交互
http://share.framerjs.com/3b0p5exrx5fi/
该Demo用到了Utilities里的
Utils.modulate(value, [a, a], [b, b], limit)函数
配合鼠标滚动函数
# Modulate the scrolling distance scroll.on Events.Move, -> y = Utils.modulate(scroll.scrollY, [0,100], [0,10]) layerA.y = y
#即滑动scroll组件100个单位的话 layerA图层会同步移动10个单位
大牛,别默默的看了,快登录帮我点评一下吧!:)
登录 立即注册