Okay, the animation basically explains everything. Nothing more needs to be said.
This took 5 minutes to code.