src/js/glightbox.js
function whichTransitionEvent() {
    let t,
        el = document.createElement("fakeelement");

    const transitions = {
        transition: "transitionend",
        OTransition: "oTransitionEnd",
        MozTransition: "transitionend",
        WebkitTransition: "webkitTransitionEnd"
    };

    for (t in transitions) {
        if (el.style[t] !== undefined) {
            return transitions[t];
        }
    }
}
function whichTransitionEvent() {
    let t,
        el = document.createElement("fakeelement");

    const transitions = {
        transition: "transitionend",
        OTransition: "oTransitionEnd",
        MozTransition: "transitionend",
        WebkitTransition: "webkitTransitionEnd"
    };

    for (t in transitions) {
        if (el.style[t] !== undefined) {
            return transitions[t];
        }
    }
}
function whichTransitionEvent ( ) { let t , el = document . createElement ( "fakeelement" ) ; const transitions = { transition : "transitionend" , OTransition : "oTransitionEnd" , MozTransition : "transitionend" , WebkitTransition : "webkitTransitionEnd" } ; for ( t in transitions ) { if ( el . style [ t ] !== undefined ) { return transitions [ t ] ; } } }
Determine transition events
Determine transition events