Made animation to start after the document loading is complete.