State Progress Bar is not animating in Blocks

Hi,
The State Progress Bar is only animating when we manually set current state number in the designer.
When I tried in Blocks it was not animating between the states.

This is the block which I set On Button Click in Blocks Panel.
image

When I click the button it directly goes to the next state without any transition (animation) between them.

I also tried specifying Animation Duration to 5000 in Designer but nevertheless, it did not work.

Any solution for this?