Re: [css-houdini-drafts] Proposal: Custom functions for modifying CSS values (#857)

@majido I was also thinking about that during yesterday's discussion on easing functions, but it is a much more complex case, because the ”value” returned from the CSS function would need to be another function. 

 We don't currently have a TypedOM way of representing that easing function. Even [web animations just represents them as the string value](https://drafts.csswg.org/web-animations/#the-effecttiming-dictionaries) of the CSS notation. But, it should definitely be added in the future. (It would be nice to be able to use the built-in CSS functions as arbitrary interpolator functions in JS!)

Once there is a TypedOM way to represent an easing function, it's probably a reasonable extension to web animations make it possible to subclass and override the interpolation function with a custom JS `f(x)` interpolator.  Once _that_ happens, it would also be a natural extension to this proposal: you define a custom CSS function that returns a custom easing function object.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/857#issuecomment-499897857 using your GitHub account

Received on Friday, 7 June 2019 14:05:21 UTC