I've been struggling to find a solution for this particular scenario in Aframe. I want to create an embedded Aframe scene as the background of a webpage and have the camera move along a path as the user scrolls down the page.
I've set up a scene, animated the camera movement using the alongpath component, and fixed it as the webpage's background. However, I can't figure out how to link the scroll position to the camera path. I've included a video showcasing the current scene with the animation path.
On a demo page here, I somehow managed to connect to the camera controls through JS, but it only affects the Z position. Please excuse the bloat on that page as I'm testing some elements on Elementor + WP install that need cleaning up. I'm currently building scenes locally. You can view a glitch of what I have here.
This example here illustrates exactly what I'd like to achieve: <HTML>
I'm fascinated by the work done in three.js, but Aframe seems more accessible despite not being the exact use case. I admittedly struggle with JavaScript and programming in general, but I feel like I'm slowly starting to piece things together.