livephoto: make animation less annoying

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/504/head
Varun Patil 2023-03-15 15:32:44 -07:00
parent dab575714d
commit 1ef3f576b0
2 changed files with 5 additions and 12 deletions

View File

@ -405,7 +405,7 @@ div.img-outer {
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
user-select: none;
transition: border-radius 0.1s ease-in, var(--livephoto-img-transition);
transition: border-radius 0.1s ease-in;
.p-outer.placeholder > & {
display: none;

View File

@ -57,9 +57,6 @@ body.has-viewer header {
}
// Live Photo transitions
:root {
--livephoto-img-transition: opacity 0.4s linear, transform 0.3s ease-in-out;
}
.memories-livephoto {
position: relative;
overflow: hidden;
@ -73,20 +70,16 @@ body.has-viewer header {
width: 100%;
height: 100%;
display: block;
transition: var(--livephoto-img-transition);
z-index: 1;
}
video,
&.playing.canplay img {
video {
opacity: 0;
z-index: 2;
transition: opacity 0.3s ease-in-out;
}
img,
&.playing.canplay video {
opacity: 1;
}
&.playing.canplay img {
transform: scale(1.05);
}
}
// Hide scrollbar