Skip to main content
19-Tanzanite
Jun 1, 2026 12:10 PM UTC
Solved

Collection Widget - Scroll bar visible only on hover

Hi,

 

How to change scroll bar properties of collection widget using custom css. Mainly I want it to be visible only on hover. 

 

Twx version : 9.7.1

VelkumarAnswer
19-Tanzanite
Jun 1, 2026 12:17 PM UTC

I just found a solution 

@supports (ptcs-style-unit: "PTCS-COLLECTION") {
::-webkit-scrollbar {
width: 3px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: transparent;
border-radius: 4px;
}
:host(:hover) ::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.35);
}
:host(:hover) ::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.1);
}
}

 

2 replies

Velkumar19-TanzaniteAuthorAnswer
19-Tanzanite
Jun 1, 2026 12:17 PM UTC

I just found a solution 

@supports (ptcs-style-unit: "PTCS-COLLECTION") {
::-webkit-scrollbar {
width: 3px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: transparent;
border-radius: 4px;
}
:host(:hover) ::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.35);
}
:host(:hover) ::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.1);
}
}

 

Translate
Community Manager
Jun 3, 2026 6:41 PM UTC

Hello ​@Velkumar 
Thank you for providing your solution. Please feel free to mark it as Best Answer for the community to readily see how you solved the problem.
Best regards, Nathaniel

Translate
Best regards, Nathaniel