Skip to content

super tiny size touch and physical motion library for the web    You can touch this →

License

Notifications You must be signed in to change notification settings

wslx520/AlloyTouch

 
 

Repository files navigation

English | 简体中文

AlloyTouch

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

Install

npm install alloytouch

API

new AlloyTouch({
            touch:"#wrapper",
            vertical: true,
            target: target, 
            property: "translateY", 
            sensitivity: 1,
            factor: 1,
            min: 100, 
            max: 2000, 
            spring: true,
            change:function(){  }, 
            touchStart:function(value){  },
            touchMove:function(value){  },
            touchEnd:function(value){  },
            animationEnd:function(value){  } 
 })

Demo

Simple Demo: http://alloyteam.github.io/AlloyTouch/

usage

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

About

super tiny size touch and physical motion library for the web    You can touch this →

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 57.1%
  • JavaScript 42.9%