An eclipse happens when the moon, sun, and earth are all aligned. The Sun will cross between the Sun and Earth, and due to this, a shadow will be cast and falls on the surface of Earth. The eclipse only happens when the new moon is in the sky. The shadow that we see on Earth is not powerful enough to cover the whole planet.
This is why the shadow is only seen in a particular area. When solar eclipses happen, they pass through one place and then pass through another place. This is due to the way Earth orbits the Sun, as well as how the moon orbits Earth.
A solar eclipse transpires when the moon crosses between the sun and the earth, and it casts a shadow that falls upon the earth's surface. A solar eclipse can only happen when the new moon is in the sky. If the moon's inner or umbral shadow sweeps across the surface of the earth, and then we can see the total eclipse of the sun. The moon's shadow is not impressive enough to encompass the entire planet, so the shadow is always confined to a specific area.
The moon's orbit around the earth is sloped about five degrees to orbit around the sun; therefore, the moon's shadow misses earth and moves atop or beneath the planet at the new moon. Earth is constantly rotating around its axis as it orbits the sun, and the moon orbits the earth. This process is why solar eclipses seem to pass through one place to another.