How can I get a transform to follow an animated transform without stuttering?

I have this game where you move along a path made of tiles. Some of these tiles are animated moving back and forth. When you go on the tile, the player transform should move with it.

Right now I am setting the player’s transform parent to the animated transform. It works, but I get stuttering. Is it due to update and animation being called at different times? How can I resolve this?

Edit:

Turns out it was the camera following script that needed to be updated. Problem solved.

Try to update the player using LateUpdate(), this method is called after the Animation.