Re: [csswg-drafts] [web-animations-2] Web animations API for specifying timeline phases in animation options. (#7589)

@flackr No, what I was wondering was if we could collapse your example:

```
element.animate([
  {opacity: 0, offset: { offset: CSS.percent(20) }},
  {opacity: 1, offset: { offset: CSS.percent(80) }}], {
    delay: { rangeName: 'enter', offset: CSS.percent(0) },
    endDelay: { rangeName: 'enter', offset: CSS.percent(100) },
  });
```
  
  down to 

```
element.animate([
  {opacity: 0, offset:CSS.percent(20)},
  {opacity: 1, offset: CSS.percent(80)}], {
    delay: { rangeName: 'enter', offset: CSS.percent(0) },
    endDelay: { rangeName: 'enter', offset: CSS.percent(100) },
  });
```

(I'm not familiar with WebIDL and JS, so my main frame of reference is C++, thus all the stupid questions...)

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


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

Received on Monday, 7 November 2022 19:51:45 UTC