✅ Solved: Need Help Connecting Rive Animation with ViewModel (HTML/CSS/JS)

Hi everyone! I’m currently working on an animation project and trying to make something similar to the animation shown in this video: [video link here].

/I used GPT and Gemini to help generate the code using HTML, CSS, and JavaScript. I’m also trying to integrate it with a ViewModel, but I ran into an error and it’s not working as expected (see screenshot below).

Would anyone be willing to take a look at my code and point out what might be wrong? I’d really appreciate any help. Thanks in advance!