A NASA animation also shows the path the shadow of the moon took. Total eclipses occur when the moon moves between the earth and the sun, and the three bodies align precisely.
As seen from earth, the moon is just broad enough to cover the solar face, creating a breath-taking silver halo in an indigo sky.