Re: [csswg-drafts] [scroll-animations-1] Effects for scroll linked animations are not inclusive at max scroll (#5223)

Issue #4325 introduces the various issues in this area. The phases solved the issue of the ScrollTimeline becoming inactive, but this particular issue is (I believe) that for the naive case, e.g.

```js
element.animate({transform: ['none', 'translateY(200px)']}, { duration: 10000, timeline: new ScrollTimeline()});
```

When you reach the maximum scroll offset, the timeline produces time value 10000, which means that the animation is in the after phase due to https://www.w3.org/TR/web-animations-1/#animation-effect-phases-and-states

@JTensai I believe your proposal from the other issue was:
> Update animation and animation effect active time and phase calculation to take the timeline state (or hold phase) into account.

At a high level this sounds reasonable to me.

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

Received on Thursday, 9 July 2020 14:46:57 UTC