Add configuration to the animation duration