feat: CollapseChild add animation

This commit is contained in:
unknown
2021-09-07 12:25:05 +07:00
parent 510593d500
commit 9fb11a936e

View File

@@ -11,6 +11,7 @@
} }
.contentContainer { .contentContainer {
@apply block; @apply block;
animation: ContentAnimation 0.5s ease-out;
} }
.toggle { .toggle {
&:before { &:before {
@@ -53,3 +54,13 @@
.contentContainer { .contentContainer {
@apply hidden pb-16; @apply hidden pb-16;
} }
@keyframes ContentAnimation {
0% {
opacity: 0;
transform: translateY(-1.6rem);
}
100% {
opacity: 1;
transform: none;
}
}