Bug in the animation period = 0 case.