Re: [csswg-drafts] [css-easing] "smooth" (C1-continuous) easing between keyframes (#6696)

To follow up, what I meant was that if you have three segments in your animation, and you supply an easing for the first and third, you could use `smooth` to automatically get a c1-continuous cubic bezier that connects the two. You'd just interpret the easings on either side as cubic beziers, then do the control-point flipping to generate the middle one. 

Potentially you could chain `smooth` across several segments to have it generate a single bezier which is then automatically chopped for the segments, so you could like do a fast ramp and a slow finish by hand in the first and and last segments, then use a bunch of `smooth` in the middle to automatically get the equivalent of a whole-animation `ease`, just spread across the keyframes automatically.

If it lacked a preceding or following, those would just put the control point at 0,0 and 1,1; it lacked both, it could just act like `ease` or something.

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


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

Received on Tuesday, 17 September 2024 18:21:42 UTC