root motions in UE4

We make animations for the character under our game on UE4 and there are some problems with this. In particular, with the root movement. For example, we try to make the hero hide in the closet. At the beginning of the rotation of the root by 180 degrees, the root cuts off the animation and does not rotate the character.
If anyone knows how to properly make such moments, we will be grateful for help. If you show how to make a couple of such animations, then you are ready to pay for this work.
Example: