line animating per frame - need to check formula