How does one loop and pause with functions?
- A:
- Pause for 1 sec
- $('#linktwo').animate({opacity: 1}, (250));
- $('#linkone').animate({opacity: 0}, (250));
- Pause for 1 sec
- $('#linkthree').animate({opacity: 1}, (250));
- $('#linktwo').animate({opacity: 0}, (250));
- Pause for 1 sec
- $('#linkfour').animate({opacity: 1}, (250));
- $('#linkthree').animate({opacity: 0}, (250));
- Pause for 1 sec
- $('#linkone').animate({opacity: 1}, (250));
- $('#linkfour').animate({opacity: 0}, (250));
- 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!