Scene change to the top of page

(edgar) #1

I am trying to make a fairly long scrollable mobile page. To have it be less heavy in a single scene, I split it up and tried to put at the bottom of each section a Jump to next scene – with scroll bottom to top transition.
But this transition scrolls to the same position in the next scene which is the bottom of the page rather than the top.
Is there a way to change from scene to scene with a scroll transition but have it scroll to the top of the next scene?



If you run this JavaScript function, it will scroll your visitor immediately to position 0 (on the X axis) and 0 (on the Y axis) --> window.scrollTo(0,0);

This could be run either ‘on Scene Load’ for your scenes, or in response to a button action.