add getPercentage function
separate animation styles