• chisel@piefed.social
    link
    fedilink
    English
    arrow-up
    17
    arrow-down
    1
    ·
    7 hours ago

    It’s a few lines of css, no JS required.

    .my-div:hover {
      overflow-x: scroll;
    }
    

    And the look and feel of the scrollbar is generally determined by the browser/OS. Unless someone does a custom scrollbar implementation, but that is exceedingly rare. So that thin rounded gray bar is a browser/OS design, again, without any JS.