:root:active-view-transition ... {
/* ... */
}`:active-view-transition` CSS pseudo-class / notebook
`:active-view-transition` CSS pseudo-class
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
<main>
<section class="color">
<h2>Color is changing!</h2>
</section>
<button id="change-color">Change Color</button>
</main>