KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I would like to create a pause inside a while loop so that I can create n animations that each appear 3 seconds after the other. I've tried the following, but it doesn't work. Would love to have someone show me what I'm doing wrong. i=0; while (i < n) { someanimation(); setTimeout(function(){ i++; }, 3000); };
Tags (comma-separated)
Save Edits
Cancel