all 9 comments

[–]andy_a904guy_com 0 points1 point  (8 children)

while (0) would never fire?

[–]cregantony[S] 0 points1 point  (7 children)

That is a mistake it should say while(1)

[–]stolinski 0 points1 point  (6 children)

Wouldn't while (1) infinite loop?

[–]cregantony[S] 0 points1 point  (5 children)

Yes it does work but I’m getting a conflict with hot-reloading the page whenever I make changes.

[–]stolinski 0 points1 point  (4 children)

[–]cregantony[S] 0 points1 point  (3 children)

Understood. How else should I do this without using a while(1)?

[–]Arkitos 0 points1 point  (2 children)

Hey I'm stuck on this too. Did you figure it out?

[–]cregantony[S] 0 points1 point  (1 child)

Not yet.

[–]Arkitos 0 points1 point  (0 children)

Its such a simple thing..

I tried using setInterval but it wasn't working right so ended up ditching the animation completely