logoalt Hacker News

singpolyma3 • today at 3:48 PM • 1 reply • view on HN

> If you search for “sticky positioning” on npm, there’s no package that says “just use CSS position: sticky, you dolt.”

You could maybe find a component that all it does is apply position:sticky though?


Replies

littlecranky67 • today at 3:52 PM

Maybe I'm too old, but remember position sticky is relatively "new" and I was around when browsers didn't support it, yet everybody demanded for "affix" solution [0] (the buzzword you would search to find a jquery plugin). Internet Explorer never had position: sticky, and FF only introduced it in 2014. And I dealt with projects until around at least 2017/2018 where enterprise clients would make any webdev required to run on IE12 too.

[0]: https://www.w3schools.com/bootstrap/bootstrap_affix.asp