Adjusting timing for animations