Collapse div when page is scroll down on Reactive Template

Template: Reactive

Question/Scenario: I want to collapse close my div portion when I scroll the page regardless of the height of scroll as long it scroll down the page and collapses open if I get back on the top portion.


You need to use JS for that. Check the second answer of this post.