Adds css transition to selected tab