How do escalators work?

Jared Owen animated the inner workings of an escalator for a detailed look at the steps, step chain, gears, handrail, and motor.