UNPKG

jcore-ui

Version:

jcore-ui - components for building an interface

36 lines 1.15 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const event = { transitionEnd() { var t, el = document.createElement("fakeelement"); var transitions = { "transition": "transitionend", "OTransition": "oTransitionEnd", "MozTransition": "transitionend", "WebkitTransition": "webkitTransitionEnd" }; for (t in transitions) { const idx = t; if (el.style[idx] !== undefined) { return transitions[idx]; } } }, animationEnd() { var t, el = document.createElement("fakeelement"); var animations = { "animation": "animationend", "OAnimation": "oAnimationEnd", "MozAnimation": "animationend", "WebkitAnimation": "webkitAnimationEnd" }; for (t in animations) { const idx = t; if (el.style[idx] !== undefined) { return animations[idx]; } } } }; exports.default = event; //# sourceMappingURL=event.js.map