EDIT: @PortableStick solved. Sorry for second pen i need it for demonstrating my question, so it might be different at moment u looking this question, i hope description of problemo will explain
Here is short example, two divs, by clicking first it goes left ( erase ) , and one below goes up, replacing place of first.
*I’ll fix this algorithm to be more adaptive not just “first-second” classes, when know there is not better solution
Here is short code:
Here in short code for me all looks smooth
But here in bigger project, when it need to be setup to ( display: none *clicked on first div ) , looks like all goes repaint self (moves/shake), and looks ugly