0

How to edit scroll bar

desktop user's i need you'r help https://css-tricks.com/almanac/properties/a/animation/ does anybody know that how did they edited scroll bar of there website?

6th Jun 2020, 6:13 PM
Dessifer
Dessifer - avatar
3 Respostas
+ 1
This can be done e.g.: let scbar = document.querySelector("#Length"); window.addEventListener("scroll", () => { let max = document.body.scrollHeight - innerHeight; scbar.style.width = `${(pageYOffset / max) * 100}%`; });
6th Jun 2020, 6:57 PM
JaScript
JaScript - avatar
+ 1
You could try to scroll here ☠𝓹𝓪𝓼𝓸𝓷𝓪☠ and see how that works. Is this what you're looking for? https://code.sololearn.com/W0FEF75pP5sf/?ref=app
9th Jun 2020, 7:58 PM
JaScript
JaScript - avatar
0
Thanks for your time bro but still it did'nt work.
9th Jun 2020, 4:12 PM
Dessifer
Dessifer - avatar