fade - The fading of my javascript is speeding up at the end -


the transitioning of text perfect except @ end of transition speeds up. need text continue have same fadein time rather speed up.

$(function () { var string = "through education, can besafer"; var dest = $('#fadein'); var c = 0; var = setinterval(function () {     if (c >= string.length) {         clearinterval(i);         dest.text(string);     } else {         $('<span>').text(string[c]).         appendto(dest).hide().fadein(3500);         c += 1;     } }, 80); 

http://jsfiddle.net/besafer/r8wo2dsr/

a simple workaround - add spaces @ end of sentence.

var string = "through education, can besafer                         "; 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -