Refactoring functions to improve animation timing for intro.