Premiumbeat.com has put up a tutorial on how to create a dynamic push-button animation in Adobe After Effects:
In the first half of the After Effects tutorial below we’ll go over how to create the overall shape of the button:
Turn on the grid in After Effects to aid in alignment
Enable “Snap to Grid” to help with creating straight lines
Create simple shape layers to give the button shape + shadows
Then, in the last 5 minutes we’ll dig into how to give the button the effect that it’s being pushed or depressed. Both the shape layers for the button and the shadow will need to be modified to really sell the effect (with the shadow totally disappearing when the button is pushed flat).
Watch the tutorial here: