Ajay Yadav
Ajay Yadav

@ATechAjay

6 Tweets 12 reads Jan 26, 2023
Design Custom Scroll Bar⚑
A Thread πŸ§΅β†“
😍 I'm inclined to believe that, the default scroll bar of the website looks hideous.
πŸ€” What do you think about it?
- BTW, we can customize the scroll bar of the websites using a few lines of code.
😍 So, Without further a do, let's get into the thread...
1️⃣ First of all, I love to change the width and background color of the scroll bar track.
- So you can change these using the "-WebKit-scrollbar" selector.
πŸ‘€ And customize as you want...
2️⃣ Also, if you want to change the thumb of the scrollBar then you can do it using the "thumb" selector.
- You can also use pseudo-class selectors to customize the thumb like hover, active, etc.
- Use "-webkit-scrollbar-button" selector for btn.
πŸ‘€ And customize as you want...
😍 Try it from here:
codepen.io
That's all for now, we will meet in the next thread😍
πŸ”” Follow Me @ATechAjay
For:
🌐 Web Development
✨ JavaScript
πŸ“ Writing Skill
πŸ”₯ Motivation
πŸ’Ή Growth
β›” But Not For Only Resources & Shitpost 😁
Thank you so much for staying to the end of this threadπŸ’š

Loading suggestions...