Make blink mode's speed adjustable and add an optional crossfade#55
Merged
Conversation
Blink mode alternated the baseline and current capture on a fixed 650ms hard cut. This makes the dwell time adjustable — a speed slider, or `[` / `]` to slow down / speed up — and adds an optional crossfade (`f`, or the Fade button) that eases between the two images instead of swapping instantly, which can make a small shift easier to catch. The dwell time and fade preference both persist across slugs and reloads. The keyboard-shortcuts overlay and the in-view hint bar document the new keys. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
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.
What this does
Blink mode alternated the baseline and current capture on a fixed 650ms hard cut, with no way to change it. This adds live controls:
[/]to slow down / speed up, with a livemsreadout.for a Fade button eases between the two images instead of swapping instantly, which can make a small shift easier to catch than an abrupt cut. The fade duration auto-scales to half the dwell (capped at 400ms) so each image still fully resolves before the next swap.The keyboard-shortcuts overlay and the in-view hint bar document the new keys (
spaceplay/pause,[/]speed,ffade).Implementation notes
The layer toggle moved from
visibilitytoopacityso the crossfade has something to animate; the transition is set inline (tied to the dwell) with.blink-layerjust establishing opacity as the animated property.Test plan
npm run lint— cleannpm test— 111 pass (no behavior here is unit-testable; it's report UI)]steps the dwell (650 → 700ms),ftoggles the crossfade, preferences persist, and there are no console errors.🤖 Generated with Claude Code