Moved animation code to when the video's ready