animation-play-state 在 ios 中不生效的解决办法(JS篇)
摘要:
我们要实现动画的播放和暂停,animation-play-state 在安卓端可以使用,但是在 ios 中不起作用,这时可以使用 js 来实现相同效果。 原理 通过 js 获取当前元素的 transform 属性,通过添加、移除 class 实现 animation 动画。 由于移除 animati 阅读全文
posted @ 2020-04-15 18:32 dawn888 阅读(694) 评论(0) 推荐(0) 编辑