Fix advanced settings animation (#7497)

As title
This commit is contained in:
Thomas Trompette
2024-10-08 17:14:50 +02:00
committed by GitHub
parent fcd60be110
commit cbdd09b00e
3 changed files with 15 additions and 22 deletions

View File

@ -6,15 +6,11 @@ const transitionValues = {
opactity: { duration: 0.2 },
height: { duration: 0.4 },
},
transitionEnd: {
overflow: 'visible',
},
};
const commonStyles = {
opacity: 0,
height: 0,
overflow: 'hidden',
...transitionValues,
};
@ -29,7 +25,6 @@ const advancedSectionAnimationConfig = (
opacity: 1,
height: isExpanded ? measuredHeight : 0,
...transitionValues,
overflow: 'hidden',
},
exit: {
...commonStyles,