I am trying to create a unique animation where three lines of text appear in succession, then hide, and then reappear in succession. I have successfully split the lines into span
tags to make them appear one after the other. However, I am struggling to find a way to hide them all at once and repeat the animation.
This is the structure of my HTML:
<span class="flexi-link" id="title-1">Link 1</span>
<span class="flexi-link" id="title-2">Link 2</span>
<span class="flexi-link" id-"title-3">Link 3</span>
This is the jQuery code I am using:
$('#title-1').delay(1000).show(0);
$('#title-2').delay(2000).show(0);
$('#title-3').delay(3000).show(0);
If you'd like to see the animation in action, you can check out this FIDDLE: http://jsfiddle.net/TtKnK/