Files
bridget/assets/css/_partial/_image.scss
Spedon 1e74555d86 dev
2023-03-20 20:19:37 +08:00

110 lines
1.7 KiB
SCSS

.image_container {
position: fixed;
top: 0;
left: 0;
opacity: 1;
display: flex;
align-items: center;
will-change: transform;
img {
max-height: 55vmin;
max-width: 100vw;
height: auto;
width: auto;
object-fit: contain;
}
&[data-status='t0'] {
transition: all 0.5s ease-in-out 1.5s;
max-height: calc(100vh - var(--footer-height));
img {
transition: all 0.5s ease-in-out 2s;
max-height: calc(100vh - var(--footer-height));
}
}
&[data-status='t1'] {
transition: opacity 0.5s ease-out 1s;
opacity: 0;
}
&[data-status='t2'] {
transition: opacity 0.5s ease-out 0.75s;
opacity: 0;
}
&[data-status='t3'] {
transition: opacity 0.5s ease-out 0.5s;
opacity: 0;
}
&[data-status='t4'] {
transition: opacity 0.5s ease-out 0.25s;
opacity: 0;
}
&[data-status='r0'] {
transition: all 0.5s ease-in-out 1s;
opacity: 1;
img {
transition: all 1s ease-in-out 0s;
max-height: 55vmin;
}
}
&[data-status='r1'] {
transition: opacity 0.25s ease-out 1.5s;
opacity: 1;
}
&[data-status='r2'] {
transition: opacity 0.25s ease-out 1.75s;
opacity: 1;
}
&[data-status='r3'] {
transition: opacity 0.25s ease-out 2s;
opacity: 1;
}
&[data-status='r4'] {
transition: opacity 0.25s ease-out 2.25s;
opacity: 1;
}
&#layer5 {
z-index: 5;
}
&#layer4 {
z-index: 4;
}
&#layer3 {
z-index: 3;
}
&#layer2 {
z-index: 2;
}
&#layer1 {
z-index: 1;
}
}
.images {
img {
position: absolute;
top: 0;
left: 0;
object-fit: contain;
max-height: 55vmin;
max-width: 100vw;
transform-origin: center;
}
}