Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>Chrome custom scroll</title>
</head>
<body>
<div class="wrapper">
  <div class="element"></div>
</div>
</body>
</html>
 
.wrapper {
  width: 300px;
  height: 200px;
  background-color: red;
  overflow-y: auto;
}
.element {
  width: 200px;
  height: 500px;
  background-color: green;
}
::-webkit-scrollbar {
    height: 10px;
    width: 6px;
    background: #fff;
}
::-webkit-scrollbar-thumb {
    background: rgba(51, 51, 51, 0.5);
    opacity: 0.3;
    border-radius: 1ex;
    /*-webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.75);*/
}
::-webkit-scrollbar-corner {
    background: #fff;
}
::-webkit-scrollbar-thumb {
    background: rgba(51, 51, 51, 0.5);
    opacity: 0.3;
    border-radius: 1ex;
}
::-webkit-scrollbar-thumb:window-inactive {
    background: rgba(255,0,0,0.1); 
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x