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.