Button animation effect

What is the best method in animating button actions? Lets say that I have FIVE buttons set up vertically. When a particular button is pressed, that button leaves the group animating to the left. This will indicate to the user(s) what section of the site he or she is on…also it will change color.

In turn that button will proceed back to it’s origin,when any other button is pressed. What would be the best way to accomplish this? Can a function work for this?

Thank you all,
SpyGUy