Explore how to create scroll-driven camera animations in a web scene using three.js and GSAP. The technique involves using the intersection observer to adjust camera positions as different sections come into view. Quaternions are utilized for smooth camera rotations, preventing issues like gimbal lock. The setup allows

3m read timeFrom garden.bradwoods.io
Post cover image
Table of contents
Intersection observer/index.html/index.js
12 Comments

Sort: