use code to realize doubleanimation