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?
3 ответов
+ 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}%`;
});
+ 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
0
Thanks for your time bro but still it did'nt work.