--scroll:0;
--color:black;
background-image: linear-gradient(to right, var(--color) calc(100% * var(--scroll)), white 0%);
const winScroll = document.body.scrollTop || document.documentElement.scrollTop;
const height = document.documentElement.scrollHeight - document.documentElement.clientHeight;
const scroll = (winScroll / height);
scrolPregressBar.style.setProperty('--scroll', scroll);