Skip to content

Commit

Permalink
fix zoom multiplier
Browse files Browse the repository at this point in the history
  • Loading branch information
yashrajbharti committed Jun 12, 2024
1 parent 002fca8 commit 099d71d
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ video.flip {
.lenses>.image {
position: relative;
}

.lenses>.image>.preview {
object-fit: cover;
border-radius: 4px;
Expand All @@ -76,8 +77,9 @@ video.flip {
}

.lenses>.image>.preview.video {
content: url("./assets/video-rect.svg");
content: url("./assets/video-rect.svg");
}

.lenses>.image>.preview-dual {
position: absolute;
object-fit: cover;
Expand Down Expand Up @@ -202,29 +204,33 @@ video.flip {
}


.range-container{
.range-container {
position: absolute;
inset-inline-start: 50%;
translate: -50% 0;
inset-block-start: 75vh;
inset-block-start: 75vh;
display: flex;
justify-content: center;
word-spacing: 15px;
visibility: hidden;
}
.zoom-multiplier{

.zoom-multiplier {
position: absolute;
inline-size: max-content;
color: #fff;
font-size: 10px;
translate: 0 18px;
pointer-events: none;
}
.range-container img{

.range-container img {
position: absolute;
pointer-events: none;
}
.range-container .slider{

.range-container .slider {
position: absolute;
left: 0;
padding-inline-start: 3px;
}

0 comments on commit 099d71d

Please sign in to comment.