Animation using the setInterval