Re: [csswg-drafts] [css-easing-2] Provide JavaScript API for CSS easing functions (#6261)

These are probably a good candidate for [typed OM](https://www.w3.org/TR/css-typed-om-1/), CSS transforms already have something similar in that you [can get out a matrix](https://www.w3.org/TR/css-typed-om-1/#dom-csstransformvalue-tomatrix) with `new CSSTranslate(CSS.px(3), CSS.px(5)).toMatrix()`.

I'm not entirely sure why there's only a few functions available in typed OM, but it'd make sense to have something like that for easing:

```js
const easing = new CSSEasing(CSS.number(.17),CSS.number(.67),CSS.number(.83),CSS.number(.67));
console.log(easing.valueAt(0.5));
```

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


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

Received on Sunday, 2 May 2021 23:18:55 UTC