Repeating animation

FROM state - current state of the DOM element.

TO state - defined in code:

Note 1: $$(picture) returns list of picture elements. Each animation is offset by interval:0.3s.

Note 2: Initially all pictures are offset by translate(200px,0px); in CSS

Note 3: repeats:8 with swing means 4 pairs of back and fourth cycles