im creating a plugin called svelte-gsap for svelte, and i created a demo almost exactly like this one with one line of js
Thread
Had fun creating these motion tabs with Framer Motion. It's not as straightforward as I originally thought 🤔
Are you using layoutIds for the sliding background? Makes it fairly easy to add something that transitions between spaces.