.image_container { position: fixed; top: 0; left: 0; opacity: 1; display: flex; align-items: center; img { max-height: 50vmin; max-width: 100vw; height: auto; width: auto; object-fit: contain; } &[data-status='t0'] { transition: all 0.5s ease-in-out 0.6s; max-height: calc(100vh - var(--footer-height)); img { transition: all 0.5s ease-in-out 1.1s; max-height: calc(100vh - var(--footer-height)); } } &[data-status='t1'] { transition: all 0.2s ease-out 0.4s; opacity: 0; margin-top: 30px; } &[data-status='t2'] { transition: all 0.2s ease-out 0.3s; opacity: 0; margin-top: 30px; } &[data-status='t3'] { transition: all 0.2s ease-out 0.2s; opacity: 0; margin-top: 30px; } &[data-status='t4'] { transition: all 0.2s ease-out 0.1s; opacity: 0; margin-top: 30px; } &[data-status='r0'] { transition: all 0.5s ease-in-out 0.8s; opacity: 1; img { transition: all 0.8s ease-in-out 0s; max-height: 50vmin; } } &[data-status='r1'] { transition: all 0.2s ease-out 1.3s; opacity: 1; } &[data-status='r2'] { transition: all 0.2s ease-out 1.4s; opacity: 1; } &[data-status='r3'] { transition: all 0.2s ease-out 1.5s; opacity: 1; } &[data-status='r4'] { transition: all 0.2s ease-out 1.6s; opacity: 1; } &#layer5 { z-index: 1; } &#layer4 { z-index: 2; } &#layer3 { z-index: 3; } &#layer2 { z-index: 4; } &#layer1 { z-index: 5; } } .images { img { position: absolute; top: 0; left: 0; object-fit: contain; max-height: 55vmin; max-width: 100vw; &[data-status='null'] { opacity: 1; } &[data-status='top'] { opacity: 1; max-height: calc(100vh - var(--footer-height));; transition-property: transform, max-height; transition-timing-function: ease-in-out; transition-duration: 0.5s, 0.5s; } &[data-status='trail'] { opacity: 0; margin-top: 40px; transition-property: opacity, margin-top; transition-timing-function: ease-out; transition-duration: 0.2s; } &[data-status='resumeTop'] { opacity: 1; max-height: 55vmin; transition-property: max-height, transform; transition-timing-function: ease-in-out; transition-duration: 0.7s, 0.5s; } &[data-status='resume'] { opacity: 1; margin-top: 0; transition-property: opacity, margin-top; transition-timing-function: ease-out; transition-duration: 0.2s; } } }