Adds transition animations to tab switches.