Files
twenty/packages/twenty-ui/src/layout/animated-expandable-container/utils/getTransitionValues.ts
T
Félix Malfait 8b4b9ef8da Change type import rule (#13751)
Forcing "type" to be explicit, works best will rollup on the frontend to
exclude depdendencies
2025-08-08 01:27:05 +02:00

19 lines
425 B
TypeScript

import { type AnimationDimension } from '@ui/layout/animated-expandable-container/types/AnimationDimension';
export const getTransitionValues = (
dimension: AnimationDimension,
opacityDuration: number,
sizeDuration: number,
) => ({
transition: {
opacity: {
duration: opacityDuration,
ease: 'easeInOut',
},
[dimension]: {
duration: sizeDuration,
ease: 'easeInOut',
},
},
});