navigation bar show and hide with animations using new visibility api