Re: [csswg-drafts] [css-anchor-position][css-position] Fixing the animation problem (#9598)

I think the general handling that's in CSS transitions for style changes that happen in the middle of a transition and change the end state ought to handle that sort of case reasonably.  Transitions has a bunch of special cases for the timing of such a change *if* the new endpoint is the old start point, that is, when the original change is being reversed -- but otherwise you should just end up with a regular new transition from the current point in the old transition to the new destination.  As long as the `magic` animation of positions picks up the values from the current point in the animation, I think this ought to animate smoothly from the current position.  (At least, I'm assuming a smooth animation is what's desirable.)

I admit it's not quite smooth in that the old transition stops suddenly while the new one starts smoothly as though the old position were static, but I haven't heard complaints about that behavior for other types of animations.

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


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

Received on Thursday, 15 February 2024 16:45:39 UTC