Both boxes should move infinitely from left to right.
The blue version actually consists of two different boxes (light and dark). The transition between is triggered via webkitAnimationEnd event and a simple handler code.
Red vs blue discrepancy delay: -- ms.