Progress calculation for animation