Name: AlloyTouch
Owner: ?? AlloyTeam
Description: Smooth scrolling, rotation, pull to refresh, page transition and any motion for the web - ???????????
Created: 2015-10-12 11:04:43.0
Updated: 2018-05-24 12:48:09.0
Pushed: 2018-04-25 06:47:05.0
Homepage: http://alloyteam.github.io/AlloyTouch/
Size: 3931
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
?# AlloyTouch
???????????
Smooth scrolling, rotation, pull to refresh and any motion for the web.
install alloytouch
alloyTouch = new AlloyTouch({
touch:"#wrapper",//?????dom
vertical: true,//???????true????????touch
target: target, //?????
property: "translateY", //??????
min: 100, //???,????????
max: 2000, //???,????????
sensitivity: 1,//???,?????????????1??????
factor: 1,//???,?????????????????????????1
moveFactor: 1,//???,??touchmove?????????????????1
step: 45,//?????step????
bindSelf: false,
maxSpeed: 2, //???????????????
initialValue: 0,
change:function(value){ },
touchStart:function(evt, value){ },
touchMove:function(evt, value){ },
touchEnd:function(evt,value){ },
tap:function(evt, value){ },
pressMove:function(evt, value){ },
animationEnd:function(value){ } //????
?????????????DOM:
yTouch.to(value, time, ease)
value
????time
??????????600ease
??????????????????????CSS??????cubic-bezier(0.1, 0.57, 0.1, 1)
?????????????DOM??:
yTouch.stop()
This content is released under the MIT License.