Fixing progress bar display

This commit is contained in:
Christian Aribaud 2023-04-17 20:06:22 +02:00
parent c84c681277
commit def62b96bb
2 changed files with 45 additions and 38 deletions

View File

@ -4,8 +4,14 @@
#reader-frame {
overflow: hidden;
display: flex;
flex-direction: column;
}
#reader-content {
flex: 1;
position: relative;
overflow: hidden;
}
#reader-pages {
@ -128,15 +134,12 @@
}
#reader-progress-container {
height: var(--reader-progressbar-height);
bottom: var(--reader-progressbar-height);
position: relative;
background-color: dimgray;
}
#reader-progress-bar{
height: var(--reader-progressbar-height);
background-color: whitesmoke;
height: 100%;
width: 0%;
transition: all 0.5s ease-in-out;
}

View File

@ -11,6 +11,8 @@
<body>
<div id="reader-frame">
<div id="reader-content">
<div id="reader-pages" data-pages-width="2481" data-pages-height="3503" hidden>
<img loading="lazy" src="https://www.peppercarrot.com/0_sources/ep35_The-Reflection/hi-res/en_Pepper-and-Carrot_by-David-Revoy_E35P01.jpg"/>
<img loading="lazy" src="https://www.peppercarrot.com/0_sources/ep35_The-Reflection/hi-res/en_Pepper-and-Carrot_by-David-Revoy_E35P02.jpg"/>
@ -48,6 +50,8 @@
</div>
</div>
</div>
<div id="reader-progress-container">
<div id="reader-progress-bar"></div>
</div>