- From: Robert Flack via GitHub <sysbot+gh@w3.org>
- Date: Fri, 04 Mar 2022 15:44:08 +0000
- To: public-css-archive@w3.org
> (The arguments for percentage-based were around mapping animations from one context to another; I unfortunately can't remember exactly what the use case was.) The arguments for percentage-based are: * We expect that it will be common for developers to take a time-based animation (i.e. with duration, startDelay and other properties specified) and assign it to a scroll timeline. Converting those times to their relative proportions / percentages of the overall animation length is an easy way to explain how we can support this use case and those times only need to be converted once, rather than every time layout changes. * Currently, keyframes are specified as percentage offsets, so for most animations the percentage time value will map directly to the value specified as the keyframe offset. * For ViewTimelines, developers currently often use percentages from IntersectionObserver to track elements entering / exiting the view. -- GitHub Notification of comment by flackr Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7045#issuecomment-1059275621 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 4 March 2022 15:44:10 UTC