+ 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); }

19th Dec 2017, 2:51 PM
Satish Kumar Sharma
Satish Kumar Sharma - avatar
1 Answer
+ 4
Look to here ↓↓↓ :) https://www.w3schools.com/howto/howto_js_animate.asp
19th Dec 2017, 2:59 PM
James16
James16 - avatar