Repository navigation
Description
Description
Top Layer Animations is a set of features which makes top layer elements, like <dialog>s and elements with the popover attribute animatable as they enter and exit the top layer:
- The
transition-behaviorCSS property: https://drafts.csswg.org/css-transitions-2/#transition-behavior-property - The
overlayCSS property: https://drafts.csswg.org/css-position-4/#overlay - The
@starting-styleCSS @ rule: https://drafts.csswg.org/css-transitions-2/#defining-before-change-style-the-starting-style-rule - Supporting animation of the
displayproperty: https://drafts.csswg.org/css-display-4/#display-animation
Supporting explainer: https://github.com/chrishtr/rendering/blob/master/entry-exit-animations.md
Now that the popover attribute and dialog element are being implemented and shipped in all browsers, these features are the next step in making them useful for web developers.
Specification
Multiple W3C CSSWG specs
Open Issues
No response
Tests
starting-style: https://wpt.fyi/results/css?label=master&label=experimental&aligned&q=starting-style
overlay: https://wpt.fyi/results/css/css-position/overlay
transition-behavior: https://wpt.fyi/results/css/css-transitions/parsing/transition-behavior.html
display animation: https://wpt.fyi/results/css/css-display/animations/display-interpolation.html
Current Implementations
- Blink
- Gecko
- WebKit
Standards Positions
Gecko:
- Transitions on specified discrete properties mozilla/standards-positions#763
- The
overlayCSS property mozilla/standards-positions#777 - @starting-style CSS Rule mozilla/standards-positions#833
- Display and content-visibility animations mozilla/standards-positions#762
WebKit:
- CSS transition-behavior property WebKit/standards-positions#148
- The
overlayCSS property WebKit/standards-positions#169 - @starting-style CSS Rule WebKit/standards-positions#210
- Display and content-visibility animations WebKit/standards-positions#147
Browser bug reports
No bugs filed yet that I know of
Developer discussions
No response
Polls & Surveys
No response
Existing Usage
transition-behavior: https://chromestatus.com/metrics/css/timeline/popularity/766
starting-style: https://chromestatus.com/metrics/feature/timeline/popularity/4486
overlay: https://chromestatus.com/metrics/css/timeline/popularity/748
Workarounds
No response
Accessibility Impact
No response
Privacy Impact
No response
Other
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
nt1m commentedon Oct 8, 2023
This would be easier to assess split up into 4 different proposals.
jensimmons commentedon Oct 11, 2023
@foolip @nairnandu Could you see about your team re-proposing this as four separate proposals, so we can discuss them separately.
josepharhar commentedon Oct 12, 2023
I split this into four proposals:
transition-behaviorCSS property #580overlayCSS property #581@starting-styleCSS rule #582displayandcontent-visibilityCSS properties animatable #583o-t-w commentedon Jan 12, 2024
It's a lot of new concepts just to achieve a relatively simple outcome. I played around with these properties in Canary and found it all a bit overwhelming and confusing tbh. Particularly wanting different transitions for entry and exit seemed overly complex.