Skip to content

Commit

Permalink
Scrollbar Customization
Browse files Browse the repository at this point in the history
  • Loading branch information
Khawaja Fashi Ud Din Abdullah committed Oct 3, 2024
1 parent 7df31d2 commit 3a6b92a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,25 @@
padding: 0;
font-family: sans-serif;
}
html {
overflow-y: scroll;
}

html::-webkit-scrollbar {
width: 9px;
transition: width 0.3s ease;
margin: 10px;
}

html::-webkit-scrollbar-thumb {
border-radius: 10px;
background: linear-gradient(90deg, #ff459f, #ff9532, #ff459f);
box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

html::-webkit-scrollbar-thumb:window-inactive {
background: rgb(156, 156, 156);
}
.container {
width: 100%;
min-height: 100vh;
Expand Down

0 comments on commit 3a6b92a

Please sign in to comment.