Is there a way to make a user's name cycle through an animation that changes the string of their name?
Example:
Ace 1 --> Ace --> Ac --> A --> Ac --> Ace --> Ace 1
Example:
Ace 1 --> Ace --> Ac --> A --> Ac --> Ace --> Ace 1
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
(function($) {
$.fn.writeText = function(content) {
var contentArray = content.split(""),
current = 0,
elem = this;
setInterval(function() {
if(current < contentArray.length) {
elem.text(elem.text() + contentArray[current++]);
}
}, 500);
};
})(jQuery);
$("#test").writeText("TESTANIMATE123");
a[href="/u1"] { animation: test 5s; } /*TestAnimate123 has a length of 10; each letter will take 5s */