jdyfe-eventployfill
v0.0.4
Published
utils ployfill
Downloads
5
Readme
简介
兼容原生js事件插件。兼容的事件有animationstart
, animationiteration
, animationend
, transitionend
。
使用方法
janimationstart
直接替换animationstart
janimationiteration
直接替换animationiteration
janimationend
直接替换animationend
jtransitionend
直接替换transitionend
import { janimationstart, janimationiteration, janimationend, jtransitionend } from'jdyfe-eventPloyfill'
...
dom.addEventListener(janimationstart, ()=>{})
dom.addEventListener(janimationiteration, ()=>{})
dom.addEventListener(janimationend, ()=>{})
dom.addEventListener(jtransitionend, ()=>{})
...
原理
主要是加webkit
的兼容判断。