Re: [csswg-drafts] [css-easing-2] Accept `<number>` as `<easing-function>` (#9184)

`<number>` in `animation-timing-function` would define the *output progress value*.

A naked `<number>` would define a static output progress value. It would not be very usefull. `animation-timing-function: 123` would produce the same overshooted effect during the whole animation's duration. Animating an element whose width is 1px with `transform: translateX(1px)` would move it 123px, I think.

Accepting `<number>` would be usefull when it is replaced with a calculation that includes the *input progress value* and trigonometric or polynomial functions. Many easing functions are implemented with them. `calc(p)` would be equivalent to `linear`, the "identity" easing function.

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


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

Received on Monday, 14 August 2023 12:01:07 UTC