I need to detect if a CSS transition is completed before allowing a function to repeat again, to prevent messing up the margins.
So how cam I have something like
if (transitionend == true) {
// do stuff
} else {
// do nothing
}
See Question&Answers more detail:os