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-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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue