@material-ui/core
Version:
React components that implement Google's Material Design.
23 lines (19 loc) • 577 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getTransitionProps = getTransitionProps;
exports.reflow = void 0;
var reflow = function reflow(node) {
return node.scrollTop;
};
exports.reflow = reflow;
function getTransitionProps(props, options) {
var timeout = props.timeout,
_props$style = props.style,
style = _props$style === void 0 ? {} : _props$style;
return {
duration: style.transitionDuration || typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,
delay: style.transitionDelay
};
}
;