Skip to content

feat: C++ layer for CSS animation events support#9097

Open
MatiPl01 wants to merge 3 commits intomainfrom
@matipl01/css-animation-event-callbacks
Open

feat: C++ layer for CSS animation events support#9097
MatiPl01 wants to merge 3 commits intomainfrom
@matipl01/css-animation-event-callbacks

Conversation

@MatiPl01
Copy link
Member

@MatiPl01 MatiPl01 commented Mar 13, 2026

Summary

This PR is the first one of the CSS animation/transition callbacks support series. It adds the base logic responsible for detecting which event to emit and when in CSS animations, adds a CSSEventsEmitter class responsible for emitting a batch of events from the last performOperations call and other necessary changes necessary to get durations/timings from the animation object.

I decided to support: onAnimationStart, onAnimationEnd and onAnimationIteration events for now (I don't support onAnimationCancel yet as it doesn't seem to be much useful - animation is cancelled only when removed from the style object so the user already knows when it should be cancelled - maybe we will add support for this one later on).

Test plan

Build the app, see that it compiles and pre-existing CSS animations aren't broken.

@MatiPl01 MatiPl01 self-assigned this Mar 13, 2026
@MatiPl01 MatiPl01 force-pushed the @matipl01/css-animation-event-callbacks branch from 2dc43d9 to e405031 Compare March 13, 2026 13:46
@MatiPl01 MatiPl01 changed the title feat: CSS animation events support in C++ feat: C++ layer for CSS animation events support Mar 13, 2026
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