摘要: 当任何元素生成都会触发回调函数check 阅读全文
posted @ 2016-11-29 13:50 没离开过 阅读(644) 评论(0) 推荐(0) 编辑
摘要: CSS动画有以下三个事件。 animationstart事件:动画开始时触发。 animationend事件:动画结束时触发。 animationiteration事件:开始新一轮动画循环时触发。如果animation-iteration-count属性等于1,该事件不触发,即只播放一轮的CSS动画 阅读全文
posted @ 2016-11-29 11:29 没离开过 阅读(12117) 评论(0) 推荐(0) 编辑
摘要: window.matchMedia方法返回的MediaQueryList对象有两个方法,用来监听事件:addListener方法和removeListener方法。如果mediaQuery查询结果发生变化,就调用指定的回调函数。 原文链接:http://javascript.ruanyifeng.c 阅读全文
posted @ 2016-11-29 10:30 没离开过 阅读(3122) 评论(0) 推荐(0) 编辑