SyntaxFix
Write A Post
Hire A Developer
Questions
A possible CSS ONLY solution can be achived with position: sticky;
position: sticky;
The browser support is actually really good: https://caniuse.com/#search=position%3A%20sticky
here is an example: https://jsfiddle.net/0vcoa43L/7/