-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-easing-2] Accept <number>
as <easing-function>
#9184
Comments
This would be very helpful, I'd support this! Martin Alderson |
These don't look like |
A naked Accepting |
My point is that with
I would instead prefer some new syntax to express functions, like animation-timing-function: (p) => calc(p);
|
Right, this definitely isn't a "number". It's essentially relative color syntax, with a special If there's sufficient need I could definitely see a "custom easing function" exposed in this way, but as a specialized function, like However, I'd probably want to wait until |
Follow up of #1012 (comment).
With the new
linear()
function, CSS authors now have the ability to create custom timing functions. However it can be verbose for some functions:I would like to propose to accept
<number>
as an<easing-function>
.<number>
can be replaced with a math function, which is valid only if it includes ap
rogress parameter.Without conditional statements, this syntax is less powerfull than
linear()
but it partially mirrors what people are requesting for in Web Animations (eg.keyframe = { easing: customFnTakingProgress }
) in several issues, and may be simple to implement by UAs.The text was updated successfully, but these errors were encountered: