1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.getTransitionProps = getTransitionProps;
|
7 | exports.reflow = void 0;
|
8 | const reflow = node => node.scrollTop;
|
9 | exports.reflow = reflow;
|
10 | function 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 |