Having a custom scrollbar can help tie the branding of a site together on the page, as well as help it match an app as well, and it's really easy to do!
You can do more than I did here, including styling the up and down arrow buttons, the empty spaces on the top and bottom, and more! developer.mozilla.org/en-US/docs/Web/CSS/::-webkit…
🔗 Links
✅ The Code from this video: codepen.io/kevinpowell/pen/gORdmMZ
✅ More info on HSL: • Are you using the WRONG color model in you...
✅ More info on logical properties: • Write better CSS using logical properties
⌚ Timestamps
00:00 - Introduction
01:03 - The basics of custom scrollbars
03:18 - Hover effects on your scrollbar
03:58 - Changing the shape and making it look a bit nicer
06:01 - Targetting specific scrollbars
06:58 - Vertical scrollbars
08:23 - Browser support
12:07 - Things to avoid!
#css
--
Come hang out with other dev's in my Discord Community
💬 discord.gg/nTYCvrK
Keep up to date with everything I'm up to
✉ www.kevinpowell.co/newsletter
Come hang out with me live every Monday on Twitch!
📺 www.twitch.tv/kevinpowellcss
---
Help support my channel
👨🎓 Get a course: www.kevinpowell.co/courses
👕 Buy a shirt: teespring.com/stores/making-t...
💖 Support me on Patreon: www.patreon.com/kevinpowell
---
My editor: VS Code - code.visualstudio.com/
---
I'm on some other places on the internet too!
If you'd like a behind the scenes and previews of what's coming up on my YouTube channel, make sure to follow me on Instagram and Twitter.
Twitter: twitter.com/KevinJPowell
Codepen: codepen.io/kevinpowell/
Github: github.com/kevin-powell
---
And whatever you do, don't forget to keep on making your corner of the internet just a little bit more a
コメント