OK, I don’t have any problems with reading and testing (works like a charm) the question changing-text-periodically-in-a-span-from-an-array-with-jquery.
The problem is when I want to change two divs, not just one. It jumps not as 0,1,2,3,4,5, but as 0,2,4 and it is not clear for me why.
Here is a jsFiddle code
If I remove ct== terms.length -1 ? 0 : ct+ 1 as a second validation, it doesn’t help.
So how to make it run 0,1,2,3,4,5?
Thank you.
You were running rotateTerm twice – once for each animation completing. I fixed that and also removed the bit that sets the term data variable on title-content as it’s not needed…
http://jsfiddle.net/Dv2KV/2/