It's a CSS sprite—a long strip containing each frame of the animation—and a bit of JavaScript slides it along, animating it. Just like how sprite animation was done in early video games.
Read more here.
Start ▶ Stop ■