8 ms·
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 an
by hayksaakian 12y ago
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
- evv 12y ago> There's no "Home" key on your phone that instantly takes you to the top of the page. There is, at least on iOS. You can tap the status bar and it will quickly jump to the top of the page.
- acdha 12y ago> There's no "Home" key on your phone that instantly takes you to the top of the page On iOS: tap on the system menu at the very top of the screen.
- gabemart 12y ago> 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.
- WickyNilliams 12y agoprecisely! or you can use matchMedia (or my lib enquire.js [0]) to selectively enable/disable the entire feature. This might be preferable than @media in your CSS, because it does away with scroll listeners where they're not needed. [0] http://wicky.nillia.ms/enquire.js/ http://wicky.nillia.ms/enquire.js/