UNPKG

432 BJavaScriptView Raw
1export const reflow = node => node.scrollTop;
2export 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