When visiting the website YouTube, you may notice that their sidebar scrollbar becomes visible as soon as your mouse moves over it. I've been attempting to achieve this effect on my own div, but currently, the scrollbar only appears once I start scrolling.
I have used overflow-y: auto;
, and also experimented with overflow-y: scroll;
, yet both options resulted in the same delayed visibility of the scrollbar.
Any suggestions on how to display the scrollbar immediately upon hovering or clicking?