Added reset to animations for when you switch pages.
Added a reset to animations in the correct place for routing.