HTML5
07. Modern DOM & Discrete Transitions
Orchestrate zero-JavaScript dialog entry transitions from display: none and isolate background accessibility trees natively.
discrete-transitions.css
/* Animating DOM entry from display: none */
.dialog-overlay {
transition: opacity 0.3s ease-out, display 0.3s allow-discrete;
opacity: 1;
}
@starting-style {
.dialog-overlay {
opacity: 0;
}
}
/* Background Isolation with inert */
[inert] {
pointer-events: none;
user-select: none;
}Core Advantages
@starting-style: Animates element entry fromdisplay: nonewithout JavaScript animation timers.inertAttribute: Removes background elements from focus and accessibility trees while overlays are active.- Hardware Transforms: GPU-composited 3D matrix rotations driven by reactive CSS tokens.
Modal & Inert Visualizer @starting-style
// Background container
Hardware 3D Spatial Transforms GPU Compositor
3D Matrix Node
Spatial Engine