Can I Emulate A Callback Function From Jquery RemoveClass?


Answer :

It seems that you're using CSS3 transition for doing this. The easiest way to do this is to set delay manually:

$("#card1").removeClass('flip');  setTimeout(function(){    //wait for card1 flip to finish and then flip 2    $("#card2").removeClass('flip'); }, 500);  setTimeout(function(){    //wait for card2 flip to finish and then flip 3    $("#card3").removeClass('flip'); }, 1000); 

There's no built in jQuery method to check that css transition is complete.


Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable