perf: optimize menu animation #3095

pull/3150/head
tangjinzhou 2020-11-08 11:03:13 +08:00
parent eef874b805
commit b14410902c
1 changed files with 4 additions and 2 deletions

View File

@ -10,11 +10,13 @@
.ant-motion-collapse-legacy {
overflow: hidden;
&-active {
transition: height 0.15s @ease-in-out, opacity 0.15s @ease-in-out !important;
transition: height @animation-duration-base @ease-in-out,
opacity @animation-duration-base @ease-in-out !important;
}
}
.ant-motion-collapse {
overflow: hidden;
transition: height 0.15s @ease-in-out, opacity 0.15s @ease-in-out !important;
transition: height @animation-duration-base @ease-in-out,
opacity @animation-duration-base @ease-in-out !important;
}