@mui/material
Version:
Material UI is an open-source React component library that implements Google's Material Design. It's comprehensive and can be used in production out of the box.
21 lines (20 loc) • 597 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getTransitionProps = getTransitionProps;
exports.reflow = void 0;
const reflow = node => node.scrollTop;
exports.reflow = reflow;
function getTransitionProps(props, options) {
const {
timeout,
easing,
style = {}
} = props;
return {
duration: style.transitionDuration ?? (typeof timeout === 'number' ? timeout : timeout[options.mode] || 0),
easing: style.transitionTimingFunction ?? (typeof easing === 'object' ? easing[options.mode] : easing),
delay: style.transitionDelay
};
}
;