From 757ebc72543b6cf724df2b4462ad50b1dbf9f002 Mon Sep 17 00:00:00 2001 From: Stefan Buhrmester Date: Fri, 5 Jul 2019 01:41:11 +0900 Subject: [PATCH] fix transform origin during scaling --- src/runtime/transition/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/transition/index.ts b/src/runtime/transition/index.ts index 4be2982fb0..d89730fd6b 100644 --- a/src/runtime/transition/index.ts +++ b/src/runtime/transition/index.ts @@ -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}); ` };