41 lines
667 B
SCSS
41 lines
667 B
SCSS
// Live Photo transitions
|
|
.memories-livephoto {
|
|
position: relative;
|
|
overflow: hidden;
|
|
|
|
img,
|
|
video {
|
|
position: absolute;
|
|
padding: inherit;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
display: block;
|
|
z-index: 1;
|
|
transition:
|
|
transform 0.3s ease-in-out,
|
|
visibility 0.3s ease-in-out,
|
|
opacity 0.3s ease-in-out;
|
|
}
|
|
|
|
video {
|
|
opacity: 0;
|
|
z-index: 2;
|
|
visibility: hidden;
|
|
}
|
|
|
|
&.playing.canplay {
|
|
video {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transition:
|
|
opacity 0.3s ease-in-out,
|
|
visibility 0s ease-in-out;
|
|
}
|
|
img {
|
|
transform: scale(1.05);
|
|
}
|
|
}
|
|
}
|