JSFiddle - React, Tailwind, and code Playground
HTML
<div id="testDiv">
Rgba transition works fine on this div
</div>
<br/>
<div style="height:100px; width:270px; overflow-y:scroll">
<div style="height:500px">
This scrollbar thumbs wont "transit"----->
</div>
<div>
CSS
#testDiv{
-webkit-transition:.5s;
background-color:rgba(255,0,0,0.2);
}
#testDiv:hover{
background-color:black;
background-color:rgba(255,0,0,1);
}
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-thumb:hover {
background-color:rgba(255,0,0,1);
}
::-webkit-scrollbar-thumb {
-webkit-transition:.5s;
background-color:rgba(255,0,0,0.2);
}