Again this is a very basic model and I am already playing around with better ways of doing this using physics and motors.
The animation was made by moving the y coordinates of the duplicated track piece forwards or backwards by the width of the track piece.
The video demonstrates one track going forward and the other going backwards.