In JQuery, Is it possible to get callback function after setting new css rule?

you can use promise

$('.element').css("color","yellow").promise().done(function(){
    alert( 'color is yellow!' );
});

http://codepen.io/onikiienko/pen/wBJyLP

Leave a Comment