English | 简体中文
super tiny size touch and physical motion library
- super tiny size
- highly abstract
- real touch feedback
- independent of style layout
- simple API design
- high efficiency movement
- real physical movement trace
npm install alloytouch
new AlloyTouch({
touch:"#wrapper",
vertical: true,
target: target,
property: "translateY",
min: 100,
max: 2000,
sensitivity: 1,
factor: 1,
spring: true,
step: 45,
change:function(){ },
touchStart:function(value){ },
touchMove:function(value){ },
touchEnd:function(value){ },
animationEnd:function(value){ }
})
- Simple Demo: http://alloyteam.github.io/AlloyTouch/
- 3D Demo: http://alloyteam.github.io/AlloyTouch/3d.html
- Rotate Demo: http://alloyteam.github.io/AlloyTouch/rotate.html
- Carousel Demo: http://alloyteam.github.io/AlloyTouch/carousel.html
This content is released under the MIT License.