Repository navigation
Animation v2 - #1043
Animation v2#1043
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 04b30a74b0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| for (const track of tracks) { | ||
| setContainerValue(container, track.path, sampleTrack(track.points, time)); |
There was a problem hiding this comment.
Compose parallel writes to the same animation property
When two -parallel animations affect the same property, each timeline writes its independently calculated absolute value directly to the container. For example, two relative position.x += 100 animations are calculated with bases 0 and 100, so starting the second animation immediately jumps the display to 100 and its RAF updates overwrite the first animation rather than combining their deltas, even though the calculated stage state ends at 200. Parallel tracks targeting the same property need to be composited instead of using last-writer-wins assignments.
Useful? React with 👍 / 👎.
Deploying webgal-dev with
|
| Latest commit: |
a8c6705
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://709de67e.webgal-dev.pages.dev |
| Branch Preview URL: | https://animation-v2.webgal-dev.pages.dev |
实现 #1041 所述的 Animation v2,为 WebGAL 动画系统添加更多功能。