Re: [csswg-drafts] [css-values] Add easing function interpolation to calc (#6697)

`interp(70% ease-in-out, 100px, 40em)`
would be identical to:
`calc(100px + interpolate(ease-in-out, 70%) * (40em - 100px))`
I think?

Maybe we need `lerp(start, end, fraction)` so you can do `calc(100px + lerp(100px, 40em, interpolate(ease-in-out, 70%)))`

I think `calc()` should generally expose the primitives, but add convenience functions when appropriate.

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


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

Received on Wednesday, 29 September 2021 23:03:59 UTC