So What I want to do is only show a scrollbar for a div when the mouse pointer moves inside the div. If the mouse stops inside the div, the scrollbar should disappear. If the mouse pointer moves but is outside respective div, the scrollbar should not activate.
The actual code for this website is not written by me. I am just editing and making it aesthetically pleasing. I tried making it so that the scrollbar only appears when the pointer is inside the targeted div, but that was not good enough as I wanted it to disappear when the pointer lingers or stills. I checked on the web and forums but couldn't find a fitting answer. I am not too proficient in js, and that is the reason I am asking here for help.
This Answer (Only show scrollbar when page scrolls in css) does cover a lot of what I want, but I want to get the scrollbar to materialize when pointer moves, not when you scroll the page. Any help is greatly appreciated.
EDIT: After @FZs's comment, I think just adding a timer to hide the scrollbar should work, but any better solutions are most welcome. Also, help with designing the timer is also appreciated.