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);
a simple workaround - add spaces @ end of sentence.
var string = "through education, can besafer ";
Comments
Post a Comment