Repeating JS function
I'm trying to have this function repeat at the end of it's cycle. I tried
assigning the function to a variable and calling the variable in the
callback, but that failed. I tried wrapping this function in a setInterval
function, still couldn't get it to work.
How do I get this function to run an infinite loop and repeat itself?
$("span.text-change").typed({
strings: ["First sentence.", "Second sentence."],
typeSpeed: 30, // typing speed
backDelay: 500, // pause before backspacing
callback: function () {
// do stuff
}
});
This is the plugin: Typed JS
No comments:
Post a Comment