If you do with the sword right click then it goes into the defensive position but expresses one moment during the one on a fence block looks dan is the degradation animation. The same is eat when you are hungry you can always eat but when you look at a fence block dan comes the dismantling animation. (So the hitting animation)
Related issues
Comments

32nd Duplicate of MC-4582 - If you have not, please use the search function in the future, to see if your bug has already been submitted. If you could not find the original report, please comment with the keywords you searched for.