DEV Community

Naresh M
Naresh M

Posted on

change the style of scroll bar with only css

Try this cool code in your css and see the magic for yourself

body::-webkit-scrollbar {
width: 0.55rem;
}

body::-webkit-scrollbar-track {
background: #1e1e24;
}

body::-webkit-scrollbar-thumb {
background: #6649b8;
}

Top comments (0)