body:if-exists(#ifScrollTopHoverer):if-scrolltop-greater(1000):scroll{ #ifScrollTopHoverer {render: "Take me higher!";
}}body:if-exists(#ifScrollTopHoverer):if-scrolltop-less(200):scroll{ #ifScrollTopHoverer {render: "Take me Lower!";
}}#ifScrollTopButton:click{ #ifScrollTopHoverer {toggle-class: .switchMeOn;
}}
<p>Toggle the button to open/close a fix floating div, and then scroll up and down.</p>
<buttonid="ifScrollTopButton">Toggle div on/off</button>
<divid="ifScrollTopHoverer">Magically changing text</div>