I simplify my code to be understood easly. I want to run an animation function passing the value of div ath the same time. When I put it in loop, I can do nothing. Interval