Created
August 22, 2022 12:44
-
-
Save efetigrel/8f412264a5698802e4b191528e30be86 to your computer and use it in GitHub Desktop.
change-the-style-of-the-scroll-bar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="preconnect" href="https://fonts.googleapis.com"> | |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | |
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;900&display=swap" rel="stylesheet"> | |
<title>Document</title> | |
</head> | |
<style> | |
* { | |
background-color: #2A0944; | |
height: 3000px; | |
font-family: 'Poppins', sans-serif; | |
color: #fff; | |
} | |
h1 { | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
} | |
::-webkit-scrollbar { | |
width: 20px; | |
height: 20px; | |
} | |
::-webkit-scrollbar-thumb { | |
background: linear-gradient( | |
to bottom, | |
#607EAA, | |
#FF06B7); | |
border-radius: 50px; | |
} | |
::-webkit-scrollbar-track { | |
background: #474747; | |
} | |
</style> | |
<body> | |
<h1>Scrollbar Style</h1> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment