Call a Javascript function as soon as CSS transition has ended …

$('.selector').one('transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd', function () {
    ...
});

… or, wait until CSS animation has run through …

$('.selector').one('animationend webkitAnimationEnd oAnimationEnd MSAnimationEnd', function () {
    ...
});

Leave a Reply

Your email address will not be published. Required fields are marked *