improve animation

animation is now more smooth