2018年4月24日

touch-action 解决移动端300ms延迟问题

摘要: CSS3 新属性, touch-action: manipulation; 可以有效的解决移动端300ms延迟的问题 移动端300ms延迟问题一直都是h5APP的痛点, 有很多库或者方法都可以解决, 比如用onstouchstart和ontouchend已经 ontouchmove来实现点击, 这样 阅读全文

posted @ 2018-04-24 19:49 sjpqy 阅读(583) 评论(0) 推荐(0) 编辑

requestAnimationFrame 持续动画效果

摘要: 1. requestAnimationFrame 概述 requestAnimationFrame 是浏览器用于定时循环操作的一个API, 类似于setTimeout, 主要用途是按帧对网页进行重绘. 设置这个API的目的就是为了让各种网页动画效果 (DOM动画, Canvas动画, SVG动画, 阅读全文

posted @ 2018-04-24 10:13 sjpqy 阅读(387) 评论(0) 推荐(0) 编辑

导航