When an electron is hit by a photon of light, it absorbs the quanta of energy the photon was carrying and moves to a higher energy state. One way of thinking about this higher energy state is to imagine that the electron is now moving faster, (it has just been "hit" by a rapidly moving photon).