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

The [proposed `animation-easing-mode`](https://github.com/w3c/csswg-drafts/issues/6982#issuecomment-1776756444) seems like the cleanest as it doesn’t have the problem of `animation-easing` and `animation-timing-function` fighting against each other.

One downside though, is that you’re then limited to either effect-timings or either keyframe-timings – you can’t have both. Not sure if that’s a limitation that would bother most people or not.

Another approach is to not auto-set `animation-timing-function` to `linear` when `animation-easing` is used, requiring authors to be explicit about both. Maybe a shorthand to set both in one go could also be created?

As for the shorthand: that’s a recurring problem which I don’t think we’ll be able to solve here.

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


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

Received on Wednesday, 13 December 2023 15:29:17 UTC