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}); ` };