Why are these balls staying in place as they ride up the escalator, despite their bounciness?

The reason is a static loop of kinetic energy.

At one point, it even looks like the balls are running up the escalator.