Re: [csswg-drafts] [css-transitions-2] Start transitions on discrete animation types (#4441)

> I also follow the general thrust of this issue but am uncertain what the use cases are. Being able to transition properties with a discrete animation type would mean that they would no longer switch value immediately but rather _halfway_ through the transition duration. What is foreseen as benefits from transitioning a discrete property in that way?

One important use case is transitioning the `display` property (see https://github.com/w3c/csswg-drafts/issues/6429#issuecomment-1318933547). Since interpolation for `display` is done like `visibility`, it prefers the non-`none` state. So `transition: display 200ms` is *immediate* for the "showing" transition, and *delayed* until the end for the "hiding" transition.



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


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

Received on Wednesday, 14 December 2022 17:28:37 UTC