I’m working on a pretty big scrolling website for a for a photo journalist with background videos and lots of pictures. The scroll site is divided into different chapters. I like the user to be able to scroll directly to a chapter using the chapter navigation element, this should scroll to the anchor point without any animation. I know I can use data-scroll-time = 0 for this.
I also make use of anchor links within chapters to scroll to the next section, and I want to have a scroll animation for this interaction.
- So jumping to anchor points via the chapter navigation without animation (data-scroll-time = 0)
- And scroll to anchor points within chapter via in-chapter buttons
Does anyone know how I can set this up? Help is very much appreciated…