added a sin period to the animation