You can use an animation technique I call relative animations to do this. It involves a loop, but you really don't have to calculate anything because the browser does the layout for you.   The relative position of your floated elements are at 0,0, even when the parent element resizes. However, the absolute position of your elements will change, which would be their offsetTop and offsetLeft values.    To start out, you need to save the absolute position of all your elements. When the parent r
    • Like
    3