diff --git a/snippets/custom-scrollbar.md b/snippets/custom-scrollbar.md index a29116581..b63cc00ae 100644 --- a/snippets/custom-scrollbar.md +++ b/snippets/custom-scrollbar.md @@ -13,6 +13,7 @@ Customizes the scrollbar style for the document and elements with scrollable ove #### CSS ```css +/* Document scrollbar */ ::-webkit-scrollbar { width: 8px; } @@ -26,6 +27,10 @@ Customizes the scrollbar style for the document and elements with scrollable ove border-radius: 10px; box-shadow: inset 0 0 6px rgba(0,0,0,0.5); } + +/* Scrollable element */ +.some-element::webkit-scrollbar { +} ``` #### Demo