Last active
November 28, 2019 17:50
-
-
Save Jagathishrex/25870f6e6d85dee709744f7db9f9846f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getTransitionEndEventName() { | |
var transitions = { | |
"transition" : "transitionend", | |
"OTransition" : "oTransitionEnd", | |
"MozTransition" : "transitionend", | |
"WebkitTransition": "webkitTransitionEnd" | |
} | |
let bodyStyle = document.body.style; | |
for(let transition in transitions) { | |
if(bodyStyle[transition] != undefined) { | |
return transitions[transition]; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment