Skip to content

Commit

Permalink
resize animation poc
Browse files Browse the repository at this point in the history
  • Loading branch information
hoshinotsuyoshi committed Jan 31, 2025
1 parent f13710d commit a1b5937
Showing 1 changed file with 18 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
@keyframes collapse {
from {
width: 170px; /* TODO: 157px */
height: 245px;
0% {
transform: scale(3, 4);
border-width: calc(1px / 3);
border-radius: calc(8px / 3);
}

to {
width: 40px;
height: 40px;
transform: scale(1, 1);
border-width: 1px;
border-radius: 8px;
}
}

@keyframes expand {
from {
width: 40px;
height: 40px;
0% {
transform: scale(0.235, 0.167);
border-width: calc(1px * 0.235);
border-radius: calc(8px * 0.235);
}

to {
width: 170px;
height: 245px;
transform: scale(1, 1);
border-width: 1px;
border-radius: 8px;
}
}

Expand All @@ -42,9 +48,10 @@
flex-direction: column;
justify-content: center;
gap: var(--spacing-2, 8px);
transition: width 150ms ease, height 150ms ease;
transition: transform 150ms ease;
min-height: 40px;
z-index: var(--z-index-toolbar);
transform-origin: bottom left;
}

@media screen and (max-width: 767px) {
Expand Down

0 comments on commit a1b5937

Please sign in to comment.