livephoto: restore scale animation

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/504/head
Varun Patil 2023-03-16 17:50:54 -07:00
parent e30138d1cf
commit e1a55a49c3
2 changed files with 13 additions and 3 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;
transition: border-radius 0.1s ease-in, transform 0.3s ease-in-out;
.p-outer.placeholder > & {
display: none;

View File

@ -72,14 +72,24 @@ body.has-viewer header {
display: block;
z-index: 1;
}
video {
opacity: 0;
z-index: 2;
transition: opacity 0.3s ease-in-out;
}
&.playing.canplay video {
img {
transition: transform 0.3s ease-in-out;
}
&.playing.canplay {
video {
opacity: 1;
}
img {
transform: scale(1.05);
}
}
}
// Hide scrollbar