Just follow my flexbox demo here. I'm setting the position using CSS classes. That's actually desirable here because we can let the browser do all the calculations.    After setting a class, media query event, or resize event, call the layout function and let the magic begin. You really can't animate flexbox as most of its properties aren't based on numbers, so there's some sleight of hand going on.    See the Pen zwWgao by osublake (@osublake) on CodePen &#
    • Like
    1