Add configuration to the animation duration

Add configuration options for animationDelay and animationDuration