Skip to content

feat(core): add clock-driven value tweens - #1001

Open
houko wants to merge 1 commit into
mainfrom
assess/issue336-animated-number
Open

houko wants to merge 1 commit into
mainfrom
assess/issue336-animated-number

Conversation

@houko

@houko houko commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add Scope.Tween for clock-driven numeric callbacks that settle as finite animations
  • make tweens respect reduced motion and stop with their animation run
  • cover final-step settling and reduced-motion behavior in nsgotest
  • document the text and binding use case in the animation guides

Tween gives apps a supported path for count-up text and other Go-owned values without maintaining a frame loop, while preserving the platform animation clock and test settling behavior.

Verification

  • go tool nsgo test -run 'TestTween' -timeout 3m
  • go tool nsgo check -jobs 2

Closes #336

@github-actions github-actions Bot added size/S documentation Improvements or additions to documentation core labels Nov 20, 2026
@houko houko changed the title Add clock-driven value tweens feat(core): add clock-driven value tweens Nov 20, 2026
@github-actions github-actions Bot added the enhancement New feature or request label Nov 20, 2026
@houko
houko force-pushed the assess/issue336-animated-number branch from c83a848 to 31502fd Compare November 20, 2026 14:54
@houko
houko force-pushed the assess/issue336-animated-number branch 3 times, most recently from 9ee7a4b to e612af0 Compare November 20, 2026 15:45
@github-actions github-actions Bot added the conflict Conflicts with the base branch; resolve it first label Nov 20, 2026
@houko
houko force-pushed the assess/issue336-animated-number branch from e612af0 to facfc7e Compare November 20, 2026 16:13
@github-actions github-actions Bot removed the conflict Conflicts with the base branch; resolve it first label Nov 20, 2026
@houko
houko force-pushed the assess/issue336-animated-number branch from facfc7e to a675846 Compare November 20, 2026 16:28

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core documentation Improvements or additions to documentation enhancement New feature or request size/M tsx

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Animate a text's number (count-up): no way to bind text content to an AnimatedValue

1 participant