The images are random, refresh to see another order, resize or zoom to see the dynamic layout effect, which is non-JS involved, here is the implementation method.