add iteration to control the animation(css).