W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2020

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

From: Robert Flack via GitHub <sysbot+gh@w3.org>
Date: Thu, 09 Jul 2020 14:46:56 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-656172115-1594306014-sysbot+gh@w3.org>
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.

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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:11 UTC