Click the green flag to start the animation.
This version demonstrates how you can allow the rectangle to move to any position (unlike the first version) by using multiple overlays.