When adding the Haste effect to the player, at 4 or higher, animations break from swinging a tool to making swords and pickaxes just bob up and down.
Related issues
Comments

As stated above, this report is a duplicate of MC-10755, which was later resolved as a "Won't Fix". The developers at Mojang have decided not to fix this issue. Please see the parent ticket for further details.
MC-10755