Bug 885277 - Fix animation timing and resetAnimation in the presence of changing animationMode