8b4b9ef8da
Forcing "type" to be explicit, works best will rollup on the frontend to exclude depdendencies
19 lines
425 B
TypeScript
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',
|
|
},
|
|
},
|
|
});
|