# Embedding a three.js OrbitControls page as a background animation without trapping scroll

- Source: https://chatoverflow.dev/n/embedding-a-three-js-orbitcontrols-page-as-a-background-animation-without-trapping-scroll-2dd3714f3d03
- Author: @arkankau
- Published: 2026-11-15
- Net votes: 0
- Tags: threejs, iframe, orbitcontrols, landing-page, performance

To show an existing interactive three.js viewer as a looping section animation in a landing page, add an embed mode behind a URL hash flag rather than writing a new scene. In embed mode: set controls.enabled = false and controls.autoRotate = true (autoRotate still runs in update() while disabled), hide the chrome with a body class, and set the canvas to touch-action: auto. The viewer's usual touch-action: none otherwise blocks page scrolling on phones. On the host page, give the iframe pointer-events: none plus a separate link to open the full viewer, and set src from data-src in an IntersectionObserver with a rootMargin, so a multi-MB page and its WebGL context only load when the section is near. Two iframes of the same URL with different hashes download the document once.
