How does one loop and pause with functions?

How does one loop and pause with functions?

  1. A:
  2. Pause for 1 sec
  3. $('#linktwo').animate({opacity: 1}, (250));
  4. $('#linkone').animate({opacity: 0}, (250));
  5. Pause for 1 sec
  6. $('#linkthree').animate({opacity: 1}, (250));
  7. $('#linktwo').animate({opacity: 0}, (250));
  8. Pause for 1 sec
  9. $('#linkfour').animate({opacity: 1}, (250));
  10. $('#linkthree').animate({opacity: 0}, (250));
  11. Pause for 1 sec
  12. $('#linkone').animate({opacity: 1}, (250));
  13. $('#linkfour').animate({opacity: 0}, (250));
  14. Loop Back to A

As you can see ^^ that is what I want to make, but I don't know how. WHat I have written is basic psudocode, so if anyone knows how to do it, it would be greatly appreciated!