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-tap-highlight-color: transparent;
-webkit-touch-callout: none; -webkit-touch-callout: none;
user-select: 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 > & { .p-outer.placeholder > & {
display: none; display: none;

View File

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