tweaked timing, added -webkit-animation-fill-mode: forwards; to animation frames to prevent reset; show the nav immediately if not at the top