fix transform origin during scaling

pull/7738/head
Stefan Buhrmester 6 years ago committed by GitHub
parent 1a1f5a759d
commit 9a77abb8d9

@ -202,6 +202,7 @@ export function crossfade({ fallback, ...defaults }: CrossfadeParams & {
easing,
css: (t, u) => `
opacity: ${t * opacity};
transform-origin: top left;
transform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1-t) * dw}, ${t + (1-t) * dh});
`
};

Loading…
Cancel
Save