@ -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,
|
||||
|
||||
Reference in New Issue
Block a user