npm version npm downloads License

view-anchor: interactive 3D demo

Keep external surfaces (native views, canvases, iframes) aligned with DOM placeholders, and let a surface report its content size back to the page. The page below stays live while tilted: drag, scroll and click it directly.

web page
slot B · height set by surface B
slot A
<div ref={anchorRef} />
Surface ADOM → surface
Surface B · surface → DOM
Web page Placeholder slot Surface A (DOM → surface) Surface B (surface → DOM)