-
Notifications
You must be signed in to change notification settings - Fork 658
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 transitions should allow binary styles to be changed #7804
Comments
We considered this at one point but one of the issues is that it is very common to see Indeed, the initial value of I suppose we could treat any explicitly listed properties as a signal to opt-in to transitioning them but there are still a few questions:
I'm not sure what the right behavior would be here. And even then, we wouldn't naturally produce the "change immediately after the delay" behavior, unless the author also specified a zero duration interval like in your example, or a suitable step timing function. |
How about introducing a |
Wait, no, discretely-animated properties are still animated, even by a
|
For transitions, we don't transition discretely animatable properties. See the definition of transitionable. |
It would be nice to be able to do this:
A major thing CSS transitions are lacking right now is the ability to transition "binary" properties such as display, where there is no clear way to gradually transition them. However, this doesn't mean it wouldn't be useful to be able to simply delay their being changed. Being able to slide a pure CSS menu off the page, for example, is currently supported, but it then needs to be set to display:none to take it out of the document flow. When this is specified as a transition, the transition should simply do nothing until the delay has passed and then transition instantly.
The text was updated successfully, but these errors were encountered: