Why an entire js dependency for what can be accomplished with 10 lines of jquery?
Headroom.js – hide your header on scroll
81–90 of 99 posts
Re: Headroom.js – hide your header on scroll
#82Just get rid of the damn headers. Users don't want them. They are just misguided ways of trying to raise retention, but really what they do is make your site less pleasant to use, which then makes me not want to come back later.
serious question: do you use the web much with on your phone? There's no "Home" key on your phone that instantly takes you to the top of the page. Scrolling and scrolling and scrolling is annoying. The main critique I have for the OP is that is that it should be responsive -- and only work on tablets and mobile
All it does is add and remove classes. It can be as responsive or unresponsive as you like with @media rules.
Re: Headroom.js – hide your header on scroll
#83FYI, this UI pattern is called "Quick Return" : http://www.androiduipatterns.com/2012/08/an-emerging-ui-patt... I had been looking for this pattern's name after having seen Chrome on Android implementing it for their navbar. I find it useful on mobile where scrolling a long distance can be laborious.
Re: Headroom.js – hide your header on scroll
#84I haven't tried it out, but this is how you make it work with bootstrap 3 http://stackoverflow.com/questions/20648451/how-do-you-use-h...
I had got as far as including animate.css in trying to get things working and I was just about to write here about how it didn't bl00%y work!!! All is working now, thanks for your well-spotted tip.
Re: Headroom.js – hide your header on scroll
#85Earlier quoted context omitted.
serious question: do you use the web much with on your phone? There's no "Home" key on your phone that instantly takes you to the top of the page. Scrolling and scrolling and scrolling is annoying. The main critique I have for the OP is that is that it should be responsive -- and only work on tablets and mobile
> The main critique I have for the OP is that is that it should be responsive -- and only work on tablets and mobile All it does is add and remove classes. It can be as responsive or unresponsive as you like with @media rules.
Re: Headroom.js – hide your header on scroll
#86A couple of years ago, when fixed headers became "cool", I'd write scripts for Greasemonkey just to get rid of them. Today I'm too lazy for that :D.
But nice project.
Re: Headroom.js – hide your header on scroll
#87Earlier quoted context omitted.
Just get rid of the damn headers. Users don't want them. Are there any stats that prove this? I see this repeated time and time again on HN but I'm yet to see evidence that (a meaningfully significant number of) users are turned off by headers like this, while I have seen evidence that it increases engagement rates. It's used in both Chrome on Android and Safari on iOS, so I don't think it's an alien concept at this…
> Are there any stats that prove this? Really? You're basically looking at picture #3 from the left: http://i0.wp.com/www.stephenblower.co.uk/wp-content/uploads/... Do you need "stats" to prove the absurdity of headers that disappear when you scroll?
Re: Headroom.js – hide your header on scroll
#88Re: Headroom.js – hide your header on scroll
#89Earlier quoted context omitted.
And when I want to resume reading? What then? Let's not be obtuse, yeah?
What then? You tap the bottom of the screen to bring up the chrome instead.
Re: Headroom.js – hide your header on scroll
#90FYI, this UI pattern is called "Quick Return" : http://www.androiduipatterns.com/2012/08/an-emerging-ui-patt... I had been looking for this pattern's name after having seen Chrome on Android implementing it for their navbar. I find it useful on mobile where scrolling a long distance can be laborious.