|
|
|
|
|
by WickyNilliams
84 days ago
|
|
Mea culpa: this is kinda my doing. I released a library headroom.js (https://wicky.nillia.ms/headroom.js/) for this purpose in 2013 or something, announced here on HN, and it got very popular. It got ported to every framework imaginable. And tons of websites either used it or imitated it. I think it can be done well, but most do not do it well. Partially my fault because the defaults in headroom were not how I would recommend it. It had a tolerance option, which meant you had to scroll up so far/fast to trigger the reveal. But in my eternal foolishness I set this to zero by default. Adding a little tolerance makes it much less jittery and more intentionally triggered. And thus much less annoying. See the header on the site, it doesn't appear/disappear with every 1px movement |
|