Re: [csswg-drafts] [web-animations] Expose initial options in `KeyframeEffect` object (#7861)

I think you can restore the options using something like:

```js
const { effect } = animation;
const options = effect?.getTiming();
if (effect instanceof KeyframeEffect) {
  options.composite = effect.composite;
  options.pseudoElement = effect.pseudoElement;
}
```

-- 
GitHub Notification of comment by birtles
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7861#issuecomment-1273986559 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 11 October 2022 01:55:29 UTC