I have looked through the various threads on here about scrolling but couldn’t find anything about scroll to change a scene - so I figured I’d start my own. Basically when the user scrolls down on a scene, I’d like to jump to another scene with a transition, then when they scroll back up again they would go to the previous scene.
I thought of that but when I tried it didn’t work with scrolling. If you are on a computer you physically have to click and drag for it to be a swipe event. I just want to let them change scene if they scroll i.e. on a mouse wheel. Is this possible? Thanks
If you are using jQuery, you could use its $( “#xxx” ).scroll(); event to trigger Hype’s hypeDocument.showNextScene(optionalTransition, optionalDuration) or hypeDocument.showPreviousScene(optionalTransition, optionalDuration) methods.
For this to work, you would need to establish a way of distinguishing scroll up from scroll down.
Place a null object (small and transparent) at the bottom of the scrolling scene. Assign it an Enter Viewport > jump to scene action. When the object moves into view, the jump happens.