fix transform origin during scaling

pull/3175/head
Stefan Buhrmester 6 years ago committed by GitHub
parent 83e9d49cc9
commit 757ebc7254
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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