Introducing Hype Sticky Scroll, a powerful and versatile tool that unlocks the potential of scroll-driven animations in your Tumult Hype projects. With this plugin, create seamless and engaging scroll-based experiences that respond dynamically to user interactions.
Key features include:
Scene filtering and ignoring: Choose which scenes to include or exclude from the sticky scroll animation (just add to the scene name).
Customizable wrapper height: Adjust the height of the wrapper to fit your content and design.
Function callbacks: Implement custom behaviors with the stickyScrollBefore and stickyScrollAfter callbacks.
Progress tracking: Monitor the scroll progress and use it to control the playback of your animations (easier method in the works).
Smooth scene navigation: Scroll to specific scenes with ease, complete with customizable durations and easing options.
Use Hype Sticky Scroll in your projects and create interactive,
immersive experiences that captivate your audience!
Get the code and read the documentation on GitHub:
Awesome! It'd be good if scrolling up kept on the first frame of the first scene - right now it goes to blank (I assume trying to change to a non-existent scene?)
It was actually the first scene I used for setup and was blank and shown at percentage zero (scroll). I removed it and the setup() is now done on scene A. One could use a document load event handler in head, but I didn't as I was using it on WordPress. Upload was updated. We really need a Hype Document Load stack in the document inspector also scene/document infos in the API.
Here is also a nice snippet to avoid over scrolling at the borders (disabling the elastic band effect):
Put this in Head HTML:
<style>
body {
overscroll-behavior-y: none;
}
</style>