✳ Web Tattva Labs

Scroll-Mapped 3D Morph Targets.

Interpolating vertex coordinates between a geometric sphere and rounded cube mapped directly to page scroll offset.

View code

Run the JavaScript as a module. Keep the import map from the HTML panel.

<script type="importmap">{"imports":{"three":"https://cdn.jsdelivr.net/npm/three@0.180.0/build/three.module.js","three/addons/":"https://cdn.jsdelivr.net/npm/three@0.180.0/examples/jsm/"}}</script>
<div class="scroll" tabindex="0" aria-label="Scroll inside to control the animation"><div class="track"><div class="sticky"><canvas aria-label="Animation demo"></canvas></div></div></div>