Construct a regular pentagon

Move the control (red cross) from left to right to see how a regular pentagon inscribed inside a circle can be constructed

Try to explain why this method work.