W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2021

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

From: James Browning via GitHub <sysbot+gh@w3.org>
Date: Sun, 02 May 2021 23:18:53 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-830924404-1619997532-sysbot+gh@w3.org>
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:

const easing = new CSSEasing(CSS.number(.17),CSS.number(.67),CSS.number(.83),CSS.number(.67));

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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:33 UTC