Fixed bug in animation of mobile navbar on iOS