That video animation is bizarre, because it seems like the asteroid changes the direction of its orbit around the sun.
But am I right in interpreting this from the perspective of the Earth being stationary, and actually the asteroid keeps on moving around the sun in the same direction but sometimes we were catching up to the asteroid, and sometimes it was catching up to us?