jQuery - wait until function execution is complete
Given the following code:
$(classeDoFlipContainer).css('z-index', '1');
$(classeOpostaDoFlipContainer).css('z-index', '0');
flipBox.flippy({
color_target: "white",
duration: "900",
verso: versoDaImagem,
direction: "BOTTOM",
onFinish: setEventHandlers,
onReverseFinish: setEventHandlers
});
alert('?');
$(classeDoFlipContainer).css('z-index', '0');
$(classeOpostaDoFlipContainer).css('z-index', '1');
I added the alert('?'); just to verify that the code after flippy() is
being executed. But I need it only when flippy() is completely done. How
can I achieve this?
No comments:
Post a Comment