AlloyTeam/AlloyTouch

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

?# AlloyTouch

???????????

Smooth scrolling, rotation, pull to refresh and any motion for the web.

Related links

Install

install alloytouch

CDN

API

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)

?????????????DOM??:

yTouch.stop()

Demo(Mobile)

License

This content is released under the MIT License.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.