How to freeze scrolling on a certain frame in Javascript or React.js

I have a website when I scroll to a certain position I want to freeze the scrolling functionality but be able to raise the other object when I am scrolling.

I did not find any useful articles on the internet, maybe someone knows how I can do it.

To sum up,

I have multiple sections on my website, when I scroll to section 3, I want to disable scrolling but be able to raise the block which is located in this section 3 – I want to create a parallax effect where we continue scrolling functionality once one block is raised up.

I want to freeze scrolling but be able to listen to the mouse scroll event.

I don’t need code, just tell me how I can do it. Thanks