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

Reading through this again, I think I didn't understand @flackr's suggestion before, but I think I got it now 😅 

So, what if we made `animation-easing` have a non-specifiable initial value of something like `none`, which computes to linear, but doesn't reset `animation-timing-function`.
Then, when specifying `animation-easing` it resets `animation-timing-function` to `linear`, like [suggested above](https://github.com/w3c/csswg-drafts/issues/6982#issuecomment-1783337713). In most cases (almost all) authors wouldn't want to override `animation-timing-function` again, but they can, like above.

Also, like suggested above, allowing `easing` to also take 2 values, if needed, can also be used to set the keyframe-wide easing and then iteration-wide one, which can also later be used inside the `animation` shorthand.

So in short, I propose to accept @flackr's suggestion above, with the suggested `none` non-specifiable initial value.

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


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

Received on Saturday, 4 May 2024 00:13:52 UTC