English | 简体中文
Smooth scrolling, rotation, pull to refresh and any motion for the web.
Wiki
Install
npm install alloytouchAPI
new AlloyTouch({
touch:"#wrapper",
vertical: true,
target: target,
property: "translateY",
min: 100,
max: 2000,
sensitivity: 1,
factor: 1,
step: 45,
bindSelf: false,
initialVaule: 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){ }
})Demo(Mobile)
- Full Page Scroll : alloyteam.github.io/AlloyTouch/…
- Simple : alloyteam.github.io/AlloyTouch/
- 3D : alloyteam.github.io/AlloyTouch/…
- Rotate : alloyteam.github.io/AlloyTouch/…
- Carousel : alloyteam.github.io/AlloyTouch/…
- Carousel2 : alloyteam.github.io/AlloyTouch/…
- Three.js : alloyteam.github.io/AlloyTouch/…
Many thanks to
Who is using AlloyTouch?
License
This content is released under the MIT License.
