MDN self-hosted library · e01.org

PerformanceContainerTiming: intersectionRect property

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

html
<button id="reset">Reset</button>
<div id="wrapper">
  <section containertiming="hero">
    <h2>Hero content</h2>
  </section>
</div>
css
#wrapper {
  height: 150px;
  overflow: hidden;
  border: 1px solid black;
}