This animation shows how the light-curve (or the light radiated by a star) changes when as a planet passes in front or transits the star.
In the animation, we see the behaviour of the light-curve when a large starspot is present on the stellar surface (shown in blue). Another, smaller starspot appears at a different latitude, rotating with a different velocity. The light-curve in the animation can be compared to the one observed in the next figure it can be seen that it is a reasonable interpretation.