Student or Learner
I was reading a story book, where I came across this line.
When she smiled at him, he shifted from one foot to the other, thinking how lovely she looked.
Context: They met in a park. They were talking when this line occurred. Even after this line they were also talking.
What is the meaning of "Shifting from one foot to the other"?