Added customizable transition duration