+ 1
Hello friends I want to make name changeable animation with loop please help me to
var $text = $("#text"); var names = ["Satish", "Kumar", "Sharma"] for(var i = 0; i< names.length; i++){ (function(index)) { setTimeout(function(){ $text.html(names[index-1] + ""); }, i * 1000); }(i); }
1 Antwort
+ 4
Look to here ↓↓↓ :)
https://www.w3schools.com/howto/howto_js_animate.asp