-
Notifications
You must be signed in to change notification settings - Fork 72
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
Display and content-visibility animations #762
Comments
@hiikezoe / @birtles / @BorisChiou might have thoughts as well. Given the constraints it seems reasonable, but would be good to have proper spec text to evaluate, because there are a lot of questions about how to avoid circularity. (See fantasai's last comment in the issue) |
I recall many years ago we tried making In principle though, I think being able to animate I'm not familiar with |
Yeah, it sounds reasonable to me with the constraints. @josepharhar Can you please mend the initial comment specifically this part?
It initially misled me that display property can be animated to |
No, I believe the goal is to support transitions as well
These transitions/animations are animating to display:none, that is the main use case. |
Can you please clarify? In my understanding the current proposal does change |
Yes, with my use case in mind, after the animation is finished the element will be display:none. When closing a |
I just commented on the CSSWG issue about implementing this: w3c/csswg-drafts#6429 (comment) |
Request for Mozilla Position on an Emerging Web Specification
Other information
Support specifying display and content-visibility in animations. This support allows for developers to create exit animations after which the element automatically becomes display: none or content-visibility: hidden without needing to write any javascript to handle that switch after the animation is finished. This allows exit animations for elements to be added purely in CSS.
The text was updated successfully, but these errors were encountered: