I'm developing a quiz where Divs transactions are done via CSS. The problem is that the transaction of adding the next Div is being executed in parallel to the withdrawal of the current one. I would like to just start the animation of " removecontainer " at the end of the animation " addContainer ".
Is it possible to make this piece of code run sequentially?
$containerOptions.eq(QUESTIONUMBER).addClass("removecontainer");
QUESTIONUMBER++;
$containerOptions.eq(QUESTIONUMBER).addClass("adicionaContainer");