add animation for the navigation panel