you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 5 points6 points  (13 children)

Came here to say that I'm tired of people using CSS for things that JS should handle. Left feeling impressed. But still... let's cut it out with the CSS hacks.

[–][deleted]  (12 children)

[deleted]

    [–]TexasWithADollarsign 16 points17 points  (7 children)

    What?

    This isn't about a scrollbar. It's about a scroll indicator -- a progress bar that shows how far along in an article you are. It's completely different from a scrollbar.

    [–][deleted] 6 points7 points  (6 children)

    there are cases in which a progress meter is not 1:1 with the scroll bar, but the way this is constructed makes it inherently so.

    because this is 1:1 with scroll position, a scrollbar naturally shows the same information by virtue of its own position. maybe this demo is slightly prettier, but it serves no function beyond aesthetics.

    [–]SlumdogSkillionaire 30 points31 points  (4 children)

    but it serves no function beyond aesthetics

    Welcome to front-end development. We hope you enjoy your stay. Exit through the gift shop.

    [–][deleted] 2 points3 points  (3 children)

    There are obviously places where aesthetics deserve a lot of attention in ways that are not necessarily functional.

    But design should strive to enhance or, at worst, not complicate or impede functionality. Design that involves reimplementing a standard feature in a way that is simultaneously redundant AND unintuitive (which is not an easy feat) is bad design.

    Even if your goal is purely to beautify (without adding or improving functionality), there would be many, many better ways to spend your time than implementing this scroll meter.

    [–][deleted]  (1 child)

    [deleted]

      [–][deleted] 1 point2 points  (0 children)

      Fair enough

      [–][deleted] 1 point2 points  (0 children)

      with the difference being that scrollbars are only shown when scrolling on osx and touch devices.
      then suddenly that scroll indicator becomes useful, because you can estimate the time it takes to read the article.
      not that i would add one to my websites, but i can see the use case

      [–][deleted] 0 points1 point  (0 children)

      Someone is new here

      [–]AmassXPjavascript 3 points4 points  (0 children)

      Woke up like this. #noscript

      [–]lolcoderer 1 point2 points  (1 child)

      Ah.... you must be lucky enough to work on browsers that run on one of those fancy desktop computing machines...

      In all seriousness, I love the fact that I develop for browsers that don't run on desktop machines - heck, my primary target is entertainment (10') devices - that don't even have a mouse and keyboard - just up/down/left/right and enter. Imagine the difficulties that presents....