-
Notifications
You must be signed in to change notification settings - Fork 718
[css-animations] Define animation-behavior
(counterpart to transition-behavior
)
#10469
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
Comments
Yes, CSS animations always allowed animating discrete properties. Transitions historically did not, hence why As I mentioned in #7063, one of the difficulties of introducing a property to define the color interpolation space for CSS animations is it still leaves open the issue of how to define the same for animations generated directly via the Web Animations API. Either that property needs to map to something we define in the API or we should define a general property that applies to all animations/transitions on the element. |
Not always :) It was a resolution we made in 2012. I would really like to avoid adding yet another property for this and find a mechanism for providing property-specific or value-specific params to transitions/animations. It seems there is precedent with Web Animations can just define a |
Oh, I didn't know that! The point is that because
Yes, absolutely, that's one route for sure. If there's never a need for different animations on the same element to interpolate in different color spaces, another route would be something like SVG's I'm a little less averse to introducing another property for this if that property were to cover all possible future interpolation parameters. "behavior" is a poor name, unfortunately, and I think it would be nice to avoid adding that to the JS API / CSS animations if we can help it. |
There is, though. I'm familiar with SVG |
That is exactly what is being proposed.
That ship has sailed though, |
Yes, of course you are! That's fine, I'm just not familiar with where that was rejected so I wanted to check where we were up to. I had a think about this proposal, but rather that spread comments across two issues, allow me to reply to in issue #7063. Update: Commented here to say I don't think we should introduce |
I recently noticed that while we’ve added
transition-behavior
to css-transitions, there is noanimation-behavior
counterpart.Is this by design? I don’t see any conceptual reason why we wouldn’t. I think
transition-behavior
is an excellent place for the various flags needed about how interpolation happens, and just proposed using it to define the interpolation color space as well. But this would require addinganimation-behavior
as well (even if its values don’t supportallow-discrete
, though I don’t see why they wouldn’t).The text was updated successfully, but these errors were encountered: