Add animation for switching pages.

This completes Issue #27.