update transition duration