I am trying to make a scroll progress bar like the one offer by https://scrollprogressbar.github.io/ . The only problem being is that my website has been flipped so I can make horizontal scrolling.
.wrapper-wrapper {
width: 100vh;
height: 100vw;
transform: rotate(-90deg) translateX(-100vh);
transform-origin: top left;
overflow-y: scroll;
overflow-x: hidden;
position: absolute;
scrollbar-width: none;
-ms-overflow-style: none;
}
.wrapper {
display: flex;
flex-direction: row;
width: 400vw;
transform: rotate(90deg) translateY(-100vh);
transform-origin: top left;
}
<div class="wrapper-wrapper">
<div class="wrapper"></div>
</div>
In short my website scroll horizontally so it doesn't give out vertical value rendering the scroll progress bar inept. What should I do?