Skip to content

Commit b144109

Browse files
committed
perf: optimize menu animation #3095
1 parent eef874b commit b144109

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

components/style/core/motion.less

+4-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
.ant-motion-collapse-legacy {
1111
overflow: hidden;
1212
&-active {
13-
transition: height 0.15s @ease-in-out, opacity 0.15s @ease-in-out !important;
13+
transition: height @animation-duration-base @ease-in-out,
14+
opacity @animation-duration-base @ease-in-out !important;
1415
}
1516
}
1617

1718
.ant-motion-collapse {
1819
overflow: hidden;
19-
transition: height 0.15s @ease-in-out, opacity 0.15s @ease-in-out !important;
20+
transition: height @animation-duration-base @ease-in-out,
21+
opacity @animation-duration-base @ease-in-out !important;
2022
}

0 commit comments

Comments
 (0)