[csswg-drafts] Consider adding an animation constructor that also builds out an effect (#11631)

emilio has just created a new issue for https://github.com/w3c/csswg-drafts:

== Consider adding an animation constructor that also builds out an effect ==
Much like https://github.com/w3c/csswg-drafts/issues/11146 but more parallel to `Animatable.animate()`, seems it'd be convenient to have something like:

```
  constructor(Animatable target, object? keyframes, optional UnrestrictedDoubleOrKeyframeAnimationOptions options = {});
```

cc @flackr @ydaniv @birtles 

Does that seem reasonable?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11631 using your GitHub account


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

Received on Saturday, 1 February 2025 00:04:21 UTC