I've written i snippet of code here to demonstrate more clearly: https://jsfiddle.net/u73r6ypp/
<div id="header">Fade me away</div>
<div id="p">Lorem ipsum dolor sit amet...</div>
What I want is, as u scroll the page down, the header div will fade out, but at a point, for instance last 20% of the header element the page will scroll itself (animate/transition) to the next element which will come from the top of the window.
I hope you do understand my request and thank you in advance.