Good afternoon. When resizing, the position of the elements is not updated. Items appear in reverse order.
In this video, at first the elements move as needed, then when the window width changes, they begin to overlap each other, but I wanted them to also take their initial position
https://ru.files.fm/u/5xfqt7wm5