-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Currently, we list this as a limitation:
You cannot observe changes caused by CSS animations
However:
- There are animation events
- There is
document.getAnimations()
How about this:
- We listen to
animationstart - When it fires, we use
document.getAnimations()to get metadata about the animation - If it contains any of our observed properties, we add a
setInterval()that checks for changes untilanimationendoranimationcancelfire for that animation.
For smooth results, we may need to reduce the throttle for these cases, so we may need a constant MIN_THROTTLE with the minimum throttle we need for style-observer to work properly in Safari < 18.2.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request