Cleaner code for initiating animations.