migrate animation

migrate animation to make it compatible with older versions of Android
;)