The Scrollbar Customization in CSS and JS (2024 Update)
This article compiles all solutions for scrollbar customisation in one place. For CSS solutions, it covers relevant CSS properties and pseudo-elements, browser support, bug links and workarounds for edge cases. For JS solutions, it evaluates the majority of existing libraries based on 6 selection criteria and also offers the option to write your own implementation.
Find Your Interest
- Speaking at CSS Day 2019
- Marek’s Dev Diary: October 29, 2026
- Marek’s Dev Diary: October 22, 2026
- Marek’s Dev Diary: October 15, 2026
- Marek’s Dev Diary: November 12, 2026
- Marek’s Dev Diary: November 5, 2026
- What is the ID attribute in HTML really for?
- Groundbreaking Upgrade to SVG is Approaching: Linked Parameters Are Almost Here
- Recent CSS Bookmarks 17: Layouts
- WSF 46





