Creating a specific carousel interaction

Hello! I’m trying to create an interaction as a more novice javascript user, and I’ve been having a hard time finding answers online. I’m hoping this community can help.

I’d like to recreate a carousel interaction similiar to the one on Polestar’s homepage , where the text changes states based on the carousel slides changing. It looks like the text is outside the slider section.

I’ve tried looking through multiple user created sliders and carousels but nothing has quite matched up with what I’m trying to create. I don’t need someone to write the whole thing out for me, I just need help on figuring out where to begin. I have access to the full GSAP library if that is something that could be beneficial for this. Thank you!