You’ve set the nav to 30px high in your css so you only get animation to 30px and then it just jumps the rest because the element is much taller. You seem to have set a height to cover up the fact that you didn’t contain your floats. If you contain your floats then you don;t need the height and the animation will be smoother.
I generally avoid the jquery animation routines as they are always slow and jumpy on mobiles. I prefer to use velocity.js for animation which is just as easy to use and will work with jquery. It’s pretty easy to add in and the difference is immediately noticable on mobile.
Another point worth mentioning is that mobiles will never get to use your mobile menu unless you add in the viewport meta tag. Without this tag in place mobiles will just get the larger desktop view scaled very small and will not action the media queries at the correct width.
Glitch gone. And Thanks for the Mobile viewport point too. In real websites I use it.
Now just need to fig. out Velocity. OK Paul, do I need to change any of my JQuery code? In Velocity it says “replace all instances of jQuery’s $.animate() with $.velocity().”
In my code I have not used any JQuery Animate() method. Have I ?