<div className="box one" id="section1">
<div className="num">1</div>
</div>`enter code here`
<div className="box two" id="section2">
<div className="num">2</div>
</div>
<div className="box three" id="section3">
<div className="num">3</div>
</div>
<div className="box four" id="section4">
<div className="num">4</div>
</div>
this is the jsx code, let's suppose that it's aligned vertically with CSS, I just need to chnage the scroll logic to verticall and get the scroll position because I want to trigger a lottie animation using scroll event