To undo the position fixed in the given region?

Guys, you need that button stopped to scroll in a given area, how to do it? at the moment is position: fixed
59d332af6f839269690688.png
June 14th 19 at 20:40
1 answer
June 14th 19 at 20:42
Get the point Y where it is necessary to stop the scroll element. Add the scroll handler on the window object, which will get the current scrollTop of the window and compare it to your point. If more — set postion: absolute, if not, position: fixed

Find more questions by tags CSSHTMLjQuery