Skip to content

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

License

Notifications You must be signed in to change notification settings

fmzwy/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", 
            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){  } 
 })

Demo(Mobile)

Many thanks to

Who is using AlloyTouch?

preview

License

This content is released under the MIT License.

About

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

  • JavaScript 97.9%
  • CSS 2.1%