Jump to content
Search Community

disable scroll from timeline

Dave Dublin test
Moderator Tag

Recommended Posts

Hi

Not sure if this is possible.

 

Is there a way to remove the scroll function of the attached codepen?

 

For example, I want to be able to keep the function of the buttons (1,2,3) to cycle through the animation, but I don't want the actual page scroll to be attached to the timeline animation anymore. I feel that the user should be able to scroll past this block without always having to scroll though all the cards.

Any suggestions?

 

Thanks

Dave

 

See the Pen dyeYdRK by davedublin (@davedublin) on CodePen

Link to comment
Share on other sites

That will require some reevaluation. And I don't know if it is as simple as ripping out everything with ScrollTrigger and repurposing what is already there, but it seems to work some what.  

 

It needs some more work based on the timings and the anchor links need to be restructured so that they work both forwards and backwards. But this would be the general setup.

 

See the Pen wvjPRPg?editors=1011 by mvaneijgen (@mvaneijgen) on CodePen

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...