Answers for "css show scroll only on hover"

CSS
0

how to make scroller show only on hover of container

.scrollbox {
  width: 100px;
  height: 100px;
  overflow: auto;
  visibility: hidden;
}

.scrollbox-content,
.scrollbox:hover,
.scrollbox:focus {
  visibility: visible;
}

.scrollbox_delayed {
  transition: visibility 0.2s;
}

.scrollbox_delayed:hover {
  transition: visibility 0s 0.2s;
}
Posted by: Guest on November-02-2020

Browse Popular Code Answers by Language