Return duration within onSetWrapperTransition callback