Looping animation

see how on lunarpages.com they have like stars shooting while the people are stable?

how can i create an effect like that where something in the background is moving but at the same time an image infront is not playing or is stable.

it confuses me

<3