Repository navigation
Reveal the empty transcript's text with animateFloatAsState - #148
Merged
Merged
Conversation
The "No messages yet" title and subtitle revealed through a frame loop sampling the ported spring solver, and the glyph carried a breath that never ran (the transcript always loads with the mark). The text now animates with two animateFloatAsState springs on Motion.layout (the subtitle after MotionRole.staggerDelay(1)), and the dead breath is gone. Same springs and stagger as before; under Reduce Motion the text uses the standard reduced fade instead of a spring of the same length.
Closed
This branch was previously deployed
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.
The "No messages yet" title and subtitle in an empty session now animate with two
animateFloatAsStatesprings instead of a frame loop that sampled the portedSpringSolver. The glyph's breath, which never ran because the transcript always loads with the mark, is deleted. Net −115 lines.empty-reveal.mp4
Left:
dev(3da8e20). Right: this branch. An empty session-lab session opens and its text reveals, then a sent message hides it. The second segment repeats the reveal with both clips slowed 4x in editing. Both were recorded at real speed.Visible differences from
devMotion.layoutsprings (0.34 s in, 0.26 s out, no bounce) and the sameMotionRole.staggerDelay(1)for the subtitle.Verified
vm.sh check(all modules).devbuild, with session-lab's empty session, in three takes. I measured the visible title reveal (last blank frame to full text) from the raw frames: 0.15, 0.16 and 0.05 s ondev, and 0.06, 0.13 and 0.19 s here. That is the same spring within the emulator's 25–90 ms frame gaps. The subtitle follows the title on both.Not tested: Reduce Motion on a device or emulator.