I’ve been searching to see if there were any discussions around this but did not find the answer I was looking for. I was wondering is there a way to let the animation finish before jumping to a different scene? Or would I have to create separate hype files to link each page?
If you are just looking to have an scene transition always at the end of an animation, you can use a Timeline Action to jump to the next scene.
If you have a scene transition, but want to play some sort of closing animation on the scene first, you can use the On Scene Unload handler in the Scene Inspector to Start Timeline… and then this timeline will play all the way through, and finish the scene transition when done.
If you have a running timeline, then have an interaction/event causing a scene transition, but want that existing running timeline to always play to completion, it is a little trickier. You’d think you could do a Continue Timeline… action within the On Scene Unload handler, but that won’t work (I’d call this a bug). Instead you’d probably just set a javascript variable/flag and then check that via timeline action at the end of a timeline; if it is set you can jump to a different scene.
Like @MarkHunte said, to give more advice we’d need more details on your current setup and what you’re trying to accomplish.