Animation works for navigation bar. Should also add functionality for stopping routes when animation is closed, and when route starts, navigation closes.