Fix the 2nd nav when it hits top

How to fix the 2nd nav bar when it touch top of the browser, Here is live example please take a look and share your expertise how to achieve this one!

Been discussed here;

Hi @aaronocampo
I tried to fix my navbar when it touches the top, Exactly the way you did in your project

But, the navigation is not ideal, Its like jumped when it hit the top, In your case its very smooth & works well