Re: [csswg-drafts] [css-animations-2] there should be a way to set the effect-wide easing for a CSS Animation (#6982)

> I think more detail is needed about what exactly is meant by "disregarded". I believe what you intend is that the default `animation-timing-function` becomes `linear` unless an alternative is specified in an `animation-easing` rule for a particular keyframe.

How would setting the iteration-wide easing inside a keyframe work? Would it reset the progress from that point? If not, what use-cases would that serve?

> So I think to do this we would have to have an `auto` value which would compute equivalent to linear except that it wouldn't trigger ignoring `animation-timing-function`.

If we add another `auto` wouldn't that be a problem in the `animation` shorthand?

> For a slightly different proposal, we could treat animation-easing as a set-to-linear shorthand for animation-timing-function.

I thought that was the initial proposal. You mean it would treat the `linear` value as "auto" until `animation-easing` is explicitly specified?

Another option we can consider for solving the shorthand problem is using a new ["mode" property like I suggested above](https://github.com/w3c/csswg-drafts/issues/6982#issuecomment-1776756444).

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


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

Received on Saturday, 25 November 2023 15:11:36 UTC