- 01.GSAP Timelines: Hook into master timelines with
seek()or let D3motion’s virtual clock advance the GreenSock ticker frame-by-frame. - 02.Three.js / WebGL: Decouple render loops from system time by passing fixed delta timestamps into your shaders and particle meshes.
- 03.CSS Keyframes: Align animation durations with exact video loop lengths for mathematically seamless looping MP4s.
Live Component Showcase: Bento Motion Trio
Experience the real interactive Bento motion trio below: dynamic music player with equalizer spectrum, design streak counter, and spring-calibrated weekly calendar:
Part 1: Exporting GSAP Timelines to MP4
GreenSock (GSAP) provides an internal ticker that synchronizes tweens. To guarantee 100% frame synchronization inside D3motion, simply bind your master timeline:
const master = gsap.timeline({ repeat: -1 });
master.to(".card", {
y: -50,
rotation: 6,
duration: 1.5,
ease: "power3.inOut"
})
.to(".badge", {
scale: 1.2,
duration: 0.8,
ease: "back.out(1.7)"
}, "-=0.5");
Part 2: Exporting Three.js & WebGL Scenes
The secret to pristine WebGL export is deterministic stepping: incrementing scene rotation and particle fields by a fixed delta in your render loop rather than querying Date.now():
let virtualClock = 0;
function animate() {
virtualClock += 0.016666; // Fixed 60 FPS delta
particles.rotation.y = virtualClock * 0.8;
renderer.render(scene, camera);
requestAnimationFrame(animate);
}
requestAnimationFrame(animate);
Download Ready-to-Test Starter Files
Frequently Asked Questions
Can I export at 4K resolution?
Yes! You can specify 3840x2160 in D3motion. The viewport renders high-density vector typography with zero blurriness.