Skip to content

Reveal the empty transcript's text with animateFloatAsState - #148

Merged
Tarquinen merged 1 commit into
devfrom
transcript-fades-native
Nov 18, 2026
Merged

Tarquinen merged 1 commit into
devfrom
transcript-fades-native

Conversation

@Tarquinen

Copy link
Copy Markdown
Member

The "No messages yet" title and subtitle in an empty session now animate with two animateFloatAsState springs instead of a frame loop that sampled the ported SpringSolver. 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 dev

  • None at normal settings: the same Motion.layout springs (0.34 s in, 0.26 s out, no bounce) and the same MotionRole.staggerDelay(1) for the subtitle.
  • Under Reduce Motion, the text uses the standard reduced fade (0.2 s tween) instead of a 0.2 s critically damped spring.
  • The reveal now follows the system animator duration scale, like the app's other Compose animations. The old loop ignored it.

Verified

  • vm.sh check (all modules).
  • Emulator against a dev build, 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 on dev, 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.

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.
@Tarquinen
Tarquinen merged commit 56c5a3d into dev Nov 18, 2026
3 checks passed
@Tarquinen Tarquinen mentioned this pull request Nov 18, 2026

This branch was previously deployed

1 inactive deployment
release — f67c0257 Deployed Nov 18, 2026 by Tarquinen via check #481
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