Repository navigation
Motion: a matched element's content flies with it at full strength instead of fading in by alternate levels - #251
Merged
Merged
Conversation
…stead of fading in by alternate levels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
TabStriptabs moving from a titlebar into a sidebar flew with a faint pill, avatar and title.match_elementsnow 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 itsmarkdraws at 0.014 on the first frame.cargo test -p rune -p rune-kit --features rune-kit/markdownfails the same 16 tests with and without the change on the macOS worker it ran on (metallib, markdown and text-field tests).