This is a demo of a 3D animation of moving objects. The layer of each object is handled dynamically, so that the order of the object layers is correct at all times and that the animation is undisturbed.
Thanks to @Mathekalender_st1974