Make sure the window is active when animating.  This causes animations not to trigger when on a second monitor and un-focused, but it might be better this way?