Skip to content

Motion: a matched element's content flies with it at full strength instead of fading in by alternate levels - #251

Merged
kitlangton merged 1 commit into
devfrom
t1435-flight-children
Nov 7, 2026
Merged

kitlangton merged 1 commit into
devfrom
t1435-flight-children

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

A matched element arriving in a new parent flew at full opacity, but the content that mounted with it played its own enter fades. A fresh child counts its parent as present (the parent landed as a flight, not an entrance), so it fades in on its own, and its child rides that fade: the fades ran by alternate levels. Kit's TabStrip tabs moving from a titlebar into a sidebar flew with a faint pill, avatar and title.

match_elements now enters the arriving element's freshly mounted subtree at once (enter_now), while its flight and layout still animate.

Test: a_flights_content_flies_with_it_without_fading_in (tests/matched.rs) flies a tile with three levels of content and checks each draws at full opacity every frame. Without the change its mark draws at 0.014 on the first frame. cargo test -p rune -p rune-kit --features rune-kit/markdown fails the same 16 tests with and without the change on the macOS worker it ran on (metallib, markdown and text-field tests).

@kitlangton
kitlangton merged commit 1c10c5c into dev Nov 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant