If digging a block (eg dirt), while your hand contains the same block, upon collecting a block of that type the breaking animation will reset. This will only happen when you have an empty hand and then an object is picked up. This also occurs when changing the item which you are holding.
Duplicate of MC-2588, please use the search function to see if your bug has already been submitted. Currently over 57% of tickets are being closed as duplicate.