AlloyTouch 移动端触摸滑动解决方案

AlloyTouch

npm install alloytouch
npm install css3transform

安装这俩就可以启动动画了

import AlloyTouch from "alloytouch";
import Transform from "css3transform";
var target = document.querySelector("#div1");

    Transform(target, true);

    new AlloyTouch({....

可以参考:https://www.cnblogs.com/iamzhanglei/p/6133340.html

你可能感兴趣的:(Web前端)