I am trying to achieve very similar to this text slider https://www.lynda.com/in/general3 at first slide, it shows paragraph by paragraph then on the second slider it shows the whole paragraph at the same time. I have already achieve this but my problem is I am unable to display the text one by one on the first div and loop it
(function() {
var quotes = $(".quotes");
var quoteIndex = -1;
function showNextQuote() {
++quoteIndex;
quotes.eq(quoteIndex % quotes.length)
.fadeIn(2000)
.delay(2000)
.fadeOut(2000, showNextQuote);
}
showNextQuote();
})();
$(document).ready(function(){
var numOfLines = 2;
var delay = 1000;
var fadeTime = 1000;
for (i = 0; i < numOfLines + 1; i++) {
$('#delayedText' + i).delay(delay * i).fadeIn(fadeTime);
}
});