javascript – how to fade out a class after 100vh scroll?
<p>The Function is working well but i want to fade out the element after a 100vh scroll instead of a 500px scroll.</p>

<pre><code>jQuery(window).scroll(function(){
    if(jQuery(window).scrollTop() &gt; 500 ){jQuery(".test").fadeIn( 100 );}
    else{jQuery(".test").fadeOut( 100 );}});
</code></pre>