How to hide the scrollbar when you take the mouse and make it visible when placing the mouse?

0

Well guys, I made a side-nav with some content and I would like to make a scrollbar visible when the mouse is on top, but I would also like to hide it when the mouse is outside this side-nav.

    
asked by anonymous 08.09.2017 / 21:11

1 answer

1

Create a css file with a class with the name of your side-nav , or if it is a class, this code is already correct.

.side-nav{
    overflow-y: hidden;
}

.side-nav:hover{
    overflow-y: auto;
}
    
08.09.2017 / 21:16