He might be sad or really cold.
It may be sick! Go to the vet immediately!
A shaking and retreating dog could be frightened or in pain.
Sniffing.
It is called shaking or drying off!
he should get fixed
cause it hurt.
The shaking may occur as a response of frustration to the baby's inconsolable crying or as an action of routine abuse
A child crying is a potential sign of danger. A dog circling a crying child is a sign of concern - by the dog for the child.
He is probably just tired just let him rest and give him water. Or it could be the results of your dog having cardiac arrest ( the shaking )
Because your dog feels all the emotions you are expressing. If someone was crying you would maybe sympathize with them, that is basically what your dog is doing.
Flogging
He is cold, possibly?!?!?