Skip to content

Commit

Permalink
Added CSS styles for customizing scrollbar appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
lrmn7 committed Jun 27, 2024
1 parent 6602516 commit a47d3b7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,19 @@ body::-webkit-scrollbar {
from {top: 20px; opacity: 1;}
to {top: -30px; opacity: 0;}
}

/* Untuk browser yang mendukung scrollbar-width */
/* Membuat scrollbar lebih tipis */
::-webkit-scrollbar {
width: 8px; /* Atur lebar scrollbar */
}

/* Warna scrollbar */
::-webkit-scrollbar-thumb {
background-color: #383434; /* Warna scrollbar */
border-radius: 4px; /* Atur radius sudut scrollbar */
}

/* Untuk browser yang tidak mendukung scrollbar-width */
/* Membuat scrollbar lebih tipis */
scrollbar-width: thin;

0 comments on commit a47d3b7

Please sign in to comment.