From e3ef5b00854e1df63e9d62972c589469152bce3c Mon Sep 17 00:00:00 2001 From: Titouan Mathis Date: Thu, 13 Aug 2026 14:44:15 +0000 Subject: [PATCH 1/4] Improve the ambient MotionView stories Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01FVXrJ8idMfvt667yJadvB8 --- .../reference/items/MotionView/examples.md | 4 +-- .../stories/ambient-bind-if/app.twig | 29 ++++++++++--------- .../stories/ambient-dialog/app.twig | 23 ++++++++++----- 3 files changed, 32 insertions(+), 24 deletions(-) diff --git a/packages/docs/reference/items/MotionView/examples.md b/packages/docs/reference/items/MotionView/examples.md index 3ef32ace..7188b767 100644 --- a/packages/docs/reference/items/MotionView/examples.md +++ b/packages/docs/reference/items/MotionView/examples.md @@ -27,7 +27,7 @@ title: MotionView examples ## Zero-wiring exit animation for `data-bind:if` -[Ambient wiring](./js-api#ambient-wiring) in action: the `MotionView` has no wiring attribute at all — it wraps the `dom-update` event that [`data-bind:if`](/reference/items/DataBind/js-api#conditional-rendering-with-data-bind-if) announces before changing the DOM, so the template content animates in **and out**, even though the removed nodes are already gone when the exit plays. The `layout` option morphs the container's size with a spring. +[Ambient wiring](./js-api#ambient-wiring) in action: the `MotionView` has no wiring attribute at all — it wraps the `dom-update` event that [`data-bind:if`](/reference/items/DataBind/js-api#conditional-rendering-with-data-bind-if) announces before changing the DOM, so the template content animates in **and out**, even though the removed nodes are already gone when the exit plays. The `layout` option morphs the container's size with a spring. Because the event bubbles, the `MotionView` only needs to sit just outside the `