The Scollbar is a part of the browser that makes it possible to view content beyond the screen of the page. Now let's learn how to design a scrollbar in a web page!
Scrollbar Design For Websites
::-webkit-scrollbar
: scrollbar in web page to set style.::-webkit-scrollbar-button
: scrollbar buttons (arrow pointing up and pointing down).::-webkit-scrollbar-thumb
: scrollable element resizable.::-webkit-scrollbar-track
: space below the track (progress bar) of the scrollbar.::-webkit-scrollbar-track-piece
: the top of the progress bar is not covered by the thumb.::-webkit-scrollbar-corner
: the bottom corner of the scrollbar, where the two horizontal and vertical scrollbars meet.::-webkit-resize
: resizes the draggable that appears above the scroll bar in the bottom corner of some elements.
Scrollbar Libraries
Library Smooth Scrollbar: Smooth Scrollbar
Library SimpleBar : SimpleBar
Library gemini-scrollbar : gemini-scrollbar
Library fakescroll : fakescroll
Scrollbar CSS Example
Customize the Browser's Scrollbar with CSS

You can see the results below.
See the Pen Customize the Browser's Scrollbar with CSS by akinjide (@akinjide) on CodePen.
CSS Scroll Bars

You can see the results below.
See the Pen CSS Scroll Bars by Ghost Rider (@GhostRider) on CodePen.
Custom scrollbar css for div

You can see the results below.
See the Pen CSS-Tricks Almanac: Scrollbars by Zachary Kain (@zakkain) on CodePen.
Custom horizontal scrollbar css

You can see the results below.
See the Pen Horizontal Scrolling with Scroll Out by Christopher Wallis (@notoriousb1t) on CodePen.
CSS scrollbar style

You can see the results below.
See the Pen Scrollbars & Boxes by Vuild (@vuild) on CodePen.
Scrollbar styling

You can see the results below.
See the Pen Scrollbar styling - CSS and JS by rsp (Rafał Pocztarski) (@rsp) on CodePen.
Scrollbar Indicator

You can see the results below.
See the Pen Pure CSS Pure CSS reading position indicator by Scott Kellum (@scottkellum) on CodePen.
Summary
I hope the article will provide you with useful scrollbar knowledge for web development and design, and if you have any questions, just send me an email and I will respond as soon as possible. I hope you continue to support the site so that I can write more good articles. Have a nice day!