mirror of https://github.com/buster-so/buster.git
Remove height animation from reasoning
This commit is contained in:
parent
a9f410f3af
commit
34e128874a
|
@ -14,28 +14,16 @@ import { ReasoningMessage_Text } from './ReasoningMessage_Text';
|
||||||
import isEmpty from 'lodash/isEmpty';
|
import isEmpty from 'lodash/isEmpty';
|
||||||
|
|
||||||
const itemAnimationConfig: MotionProps = {
|
const itemAnimationConfig: MotionProps = {
|
||||||
initial: { opacity: 0, height: 0 },
|
initial: { opacity: 0 },
|
||||||
animate: {
|
animate: {
|
||||||
opacity: 1,
|
opacity: 1,
|
||||||
height: 'auto',
|
|
||||||
transition: {
|
transition: {
|
||||||
height: {
|
|
||||||
type: 'spring',
|
|
||||||
stiffness: 400,
|
|
||||||
damping: 32
|
|
||||||
},
|
|
||||||
opacity: { duration: 0.16 }
|
opacity: { duration: 0.16 }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
exit: {
|
exit: {
|
||||||
opacity: 0,
|
opacity: 0,
|
||||||
height: 0,
|
|
||||||
transition: {
|
transition: {
|
||||||
height: {
|
|
||||||
type: 'spring',
|
|
||||||
stiffness: 450,
|
|
||||||
damping: 35
|
|
||||||
},
|
|
||||||
opacity: { duration: 0.12 }
|
opacity: { duration: 0.12 }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue