Re: [csswg-drafts] [css-animations] [css-transitions] Allow authors to control the time threshold for properties with a discrete animation type (#9409)

@rthrejheytjyrtj545:

> In animations, the ease function is set for the entire animation. And specifying additional animations only for use in conjunction adds unnecessary complexity to the code and increases the likelihood of errors.

 actually no, in CSS the `timing-function` is applied per keyframe, see #6982. Only on Web Animations you can set `easing` per entire iteration.

> The same thing applies to transitions. There is no way to set the ease function only for a group of discrete properties, except by listing all the properties involved in the transition and setting for each of its values, which causes a lot of duplication, since authors usually use all together with a single ease function.

I disagree on that. This is exactly the reason we have the ability to set multiple transitions, so that you can configure it per property. You can also start with a default for `all` and then override later in the list.

Nevertheless, I think the OP might be useful. Can you give example demos (codepen/jsbin/etc) of concrete use-cases?


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


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

Received on Wednesday, 1 May 2024 10:00:20 UTC