perfect the animation effect