livephoto: make animation less annoying
Signed-off-by: Varun Patil <varunpatil@ucla.edu>pull/504/head
parent
dab575714d
commit
1ef3f576b0
|
@ -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, var(--livephoto-img-transition);
|
transition: border-radius 0.1s ease-in;
|
||||||
|
|
||||||
.p-outer.placeholder > & {
|
.p-outer.placeholder > & {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
|
@ -57,9 +57,6 @@ body.has-viewer header {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Live Photo transitions
|
// Live Photo transitions
|
||||||
:root {
|
|
||||||
--livephoto-img-transition: opacity 0.4s linear, transform 0.3s ease-in-out;
|
|
||||||
}
|
|
||||||
.memories-livephoto {
|
.memories-livephoto {
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
@ -73,20 +70,16 @@ body.has-viewer header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: block;
|
display: block;
|
||||||
transition: var(--livephoto-img-transition);
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
video {
|
||||||
video,
|
|
||||||
&.playing.canplay img {
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
z-index: 2;
|
||||||
|
transition: opacity 0.3s ease-in-out;
|
||||||
}
|
}
|
||||||
img,
|
|
||||||
&.playing.canplay video {
|
&.playing.canplay video {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
&.playing.canplay img {
|
|
||||||
transform: scale(1.05);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hide scrollbar
|
// Hide scrollbar
|
||||||
|
|
Loading…
Reference in New Issue