MDN self-hosted library · e01.org

`::view-transition` CSS pseudo-element

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

css
:root::view-transition {
  position: fixed;
  inset: 0;
}
css
::view-transition {
  /* ... */
}
css
::view-transition {
  background-color: rgb(0 0 0 / 25%);
}