Skip to main content
100%

Gist bb77ce7178ad897fb479533651191948

✓ Published0🌍 Public
UUtopiah
Last edited May 18, 2020
Created on May 18, 2020

This example pairs a dat.GUI control panel with two GSAP timelines to animate text in a Mozilla Hubs scene. It shows a FizzyText object whose message can be edited live, while sliders for “jump_anim” and “scale_anim” scrub through pre-defined timeline animations. The sliders call `tl_scale.seek(value*1000)` and `tl_jump.seek(value*1000)` on change, mapping slider positions to millisecond offsets. The code also positions the GUI with `gui.domElement.style.marginRight`, demonstrating direct DOM styling alongside the animation controls.

AI-generated description

Similar vizzes