translate nav bar when pinned