W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2021

Re: [csswg-drafts] [css-easing-1] Some ideas for linear() easing (#6533)

From: Brian Birtles via GitHub <sysbot+gh@w3.org>
Date: Mon, 23 Aug 2021 23:28:00 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-904202181-1629761279-sysbot+gh@w3.org>
For the unspecified input progress case, I think it would be good to follow the keyframe spacing behavior here, i.e. `linear(0.2, 0.3, 0.5 50%, 0.7 70%, 0.2)` is computed to `linear(0.2 0%, 0.3 25%, 0.5 50%, 0.7 70%, 0.2 100%)`.

Unfortunately the [text for that in Web Animations](https://drafts.csswg.org/web-animations-1/#computed-keyframe-offset) is _very_ algorithmic and we could probably get by with a much more simple prose description for the same here.

Here's an initial (fairly unsuccessful) attempt:

> The input progress value for points without a specified input progress value is computed such that they are spaced equidistantly between points _with_ specified input progress values whilst ensuring that the computed input progress value of the first point in the series of points is the minimum of zero (0) or the first specified input progress value, and the computed input progress value of the last point in the series of points is the maximum of one (1) or the last specified input progress value.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 23 August 2021 23:28:02 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:27:26 UTC