only set animationIsPlaying if it changed