UNPKG

597 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.getTransitionProps = getTransitionProps;
7exports.reflow = void 0;
8const reflow = node => node.scrollTop;
9exports.reflow = reflow;
10function getTransitionProps(props, options) {
11 const {
12 timeout,
13 easing,
14 style = {}
15 } = props;
16 return {
17 duration: style.transitionDuration ?? (typeof timeout === 'number' ? timeout : timeout[options.mode] || 0),
18 easing: style.transitionTimingFunction ?? (typeof easing === 'object' ? easing[options.mode] : easing),
19 delay: style.transitionDelay
20 };
21}
\No newline at end of file