From a306efd1adac91b58ae1b3c377b315391e6aa1dd Mon Sep 17 00:00:00 2001 From: Matt Perry Date: Wed, 22 May 2024 12:31:32 +0200 Subject: [PATCH] Updating comments --- .../src/projection/node/create-projection-node.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/framer-motion/src/projection/node/create-projection-node.ts b/packages/framer-motion/src/projection/node/create-projection-node.ts index 5664215c31..a5b39f3053 100644 --- a/packages/framer-motion/src/projection/node/create-projection-node.ts +++ b/packages/framer-motion/src/projection/node/create-projection-node.ts @@ -578,6 +578,12 @@ export function createProjectionNode({ this.isUpdating = true + /** + * If we're running optimised appear animations then these must be + * cancelled before measuring the DOM. This is so we can measure + * the true layout of the element rather than the WAAPI animation + * which will be unaffected by the resetSkewAndRotate step. + */ if (window.HandoffCancelAllAnimations) { window.HandoffCancelAllAnimations() }