You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
759 B
JavaScript
22 lines
759 B
JavaScript
"use strict";
|
|
|
|
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) {
|
|
var _style$transitionDura, _style$transitionTimi;
|
|
const {
|
|
timeout,
|
|
easing,
|
|
style = {}
|
|
} = props;
|
|
return {
|
|
duration: (_style$transitionDura = style.transitionDuration) != null ? _style$transitionDura : typeof timeout === 'number' ? timeout : timeout[options.mode] || 0,
|
|
easing: (_style$transitionTimi = style.transitionTimingFunction) != null ? _style$transitionTimi : typeof easing === 'object' ? easing[options.mode] : easing,
|
|
delay: style.transitionDelay
|
|
};
|
|
} |