After implementing a sticky header on scroll, I encountered an issue. When scrolling down by 1000px, the 'sticky' class is added to the header causing a slight jump in the content. This may be due to the header no longer visually existing in that location within the markup.
I've tried adding a specific height to the header and wrapping a div around the container to keep the 'sub-header' in place, but unfortunately, these attempts have been unsuccessful. How can I resolve this issue?
View live code example: http://codepen.io/anon/pen/qbaQvL?editors=110