Change animation length when the tab is runnning background.