I have the following element in my page:
<div id="banner" class="disappear">Hello</div>
The CSS for this element is:
#banner {position:fixed;}
.disappear {opacity:0;}
.appear {opacity:1;}`
I'd like to know how to change the class from .disappear
to .appear
with jQuery when the page scrolls to a certain point, and then back to .disappear
when the page returns to original position.