Animations play a significant role in UX. When the timing is right, it can enhance the experience multiple times.
This is probably one of the most in-depth interface animation guides I've ever seen.