In css:
::-webkit-scrollbar {
width: 5px;
}
::-webkit-scrollbar-thumb {
background-color: var(--back-color);
border-radius: 5px;
}
::-webkit-scrollbar-track {
background-color: var(--main-color);
width: 5px;
}
How would I specify those properties using a javascript object which would be passed into the style property of a div
tag?