livephoto: restore scale animation
Signed-off-by: Varun Patil <varunpatil@ucla.edu>pull/504/head
parent
e30138d1cf
commit
e1a55a49c3
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue