1 | export const reflow = node => node.scrollTop;
|
2 | export function getTransitionProps(props, options) {
|
3 | const {
|
4 | timeout,
|
5 | easing,
|
6 | style = {}
|
7 | } = props;
|
8 | return {
|
9 | duration: style.transitionDuration ?? (typeof timeout === 'number' ? timeout : timeout[options.mode] || 0),
|
10 | easing: style.transitionTimingFunction ?? (typeof easing === 'object' ? easing[options.mode] : easing),
|
11 | delay: style.transitionDelay
|
12 | };
|
13 | } |
\ | No newline at end of file |