Added a property for setting a block that implements a customer algorithm for calculating animation duration and animated progress.