This is an example of the phi phenomenon. This is an optical illusion that occurs when a series of still images, in this case the flashing lights, are viewed in quick succession. This given the illusion of a continuous movement rather than discrete still images.