What would cause a dogs legs to shake?

there could be lots of reasons these are a couple of suggestions i hope they help. Maybe the dog is cold or even if your dog suffers from bad nerves. or even it could just be a twitch. I have a dog and she tends to twitch her legs in her sleep but just because shes dreaming. It wouldn't be nothing serious.