Some checks failed
CI/CD Pipeline / unit-tests (push) Failing after 1m16s
CI/CD Pipeline / integration-tests (push) Failing after 2m32s
CI/CD Pipeline / lint (push) Successful in 5m22s
CI/CD Pipeline / e2e-tests (push) Has been skipped
CI/CD Pipeline / build (push) Has been skipped
14 lines
594 B
JavaScript
14 lines
594 B
JavaScript
export const reflow = node => node.scrollTop;
|
|
export 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
|
|
};
|
|
} |