DEV Community

Cover image for Custom scrollbar
Ahmad
Ahmad

Posted on • Edited on

Custom scrollbar

on CodePen.



body {
height: 5000px;
background-color: #222;
}
 ::-webkit-scrollbar {
    width: 35px;
}

 ::-webkit-scrollbar-thumb {
    background: linear-gradient(#d8771b, #ee1556);
    border-radius: 50px;
}

 ::-webkit-scrollbar-track {
    background-color: #111;
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)