Skip to content

Instantly share code, notes, and snippets.

@ljanzik
Created November 28, 2014 20:50
Show Gist options
  • Save ljanzik/98e02e30d4dd178073da to your computer and use it in GitHub Desktop.
Save ljanzik/98e02e30d4dd178073da to your computer and use it in GitHub Desktop.
Wann ist eine CSS Transition vorbei?
$('#box').click(function() {
$('#box').animate({
marginLeft: '200'
}, 5000, function() {
alert("Animation vorbei");
});
});
function animationEnd(){
alert("Animation vorbei");
}
document.getElementById("box").addEventListener("webkitTransitionEnd", animationEnd);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment