add expand top image function

This commit is contained in:
Spedon
2023-03-10 23:25:30 +08:00
parent 7400ca7105
commit 51e7d73bef
2 changed files with 52 additions and 9 deletions

View File

@@ -1,10 +1,10 @@
.image {
height: 55vmin;
max-height: 55vmin;
position: absolute;
transform: translate(-50%, -50%);
img {
height: 55vmin;
max-height: 55vmin;
width: auto;
}
}
@@ -19,6 +19,21 @@
transition: opacity 0ms ease-in-out;
}
.top {
transition: all 0.5s ease-in-out 1.5s;
max-height: calc(100vh - var(--footer-height));
display: flex;
align-items: center;
width: auto;
img {
transition: all 0.5s ease-in-out 2s;
max-height: calc(100vh - var(--footer-height));
width: auto;
max-width: 100vw;
}
}
.trailingImage1 {
transition: opacity 0.5s ease-in-out 1s;
opacity: 0;