Skip to content

feat: OperationsLoop for simpler css animations and transitions updates#9248

Open
MatiPl01 wants to merge 5 commits intomainfrom
@matipl01/operation-loop
Open

feat: OperationsLoop for simpler css animations and transitions updates#9248
MatiPl01 wants to merge 5 commits intomainfrom
@matipl01/operation-loop

Conversation

@MatiPl01
Copy link
Copy Markdown
Member

@MatiPl01 MatiPl01 commented Apr 11, 2026

Summary

This PR adds one useful abstraction that moves per-frame animation updates to the separate OperationsLoop class and extracts this responsibility from CSSAnimationsRegistry and CSSTransitionsRegistry classes.

Thanks to this, both classes become simpler and more readable, which will help in the implementation of Core Animation integration in #9236.

This approach will also make it simpler to add different (not time-based) progress providers (different timelines - e.g. scroll-based timeline) as it removes tight coupling of registries with performOperations loop. It separates the progress update step from the style calculation, which can now happen independently, thus different progress providers could update animation progress, whilst updates will still be properly collected in the independent performOperations loop.

@MatiPl01 MatiPl01 self-assigned this Apr 11, 2026
@MatiPl01 MatiPl01 marked this pull request as ready for review April 11, 2026 16:59
@MatiPl01 MatiPl01 requested a review from tjzel April 14, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant