fix another crossfade bug

pull/2431/head
Richard Harris 6 years ago
parent 80d1ed72a6
commit bc4bd8a438

@ -135,6 +135,7 @@ export function crossfade({ fallback, ...defaults }) {
const to = node.getBoundingClientRect();
const dx = from.left - to.left;
const dy = from.top - to.top;
const d = Math.sqrt(dx * dx + dy * dy);
const style = getComputedStyle(node);
const transform = style.transform === 'none' ? '' : style.transform;

Loading…
Cancel
Save