Layering

The ordering of elements can be controlled by changing the .layer attribute of an element. In this example, every 1000 milliseconds the layering of the Rectangles are flipped.