Jump to content
Search Community

Full screen page

kobracode test
Moderator Tag

Recommended Posts

Hello, as you may see in the codepen.

I need, when you scroll down on the first viewport to go directly to second section like snaping.

 

But my main issue is that i want, when the section (.box-a) reach the viewport to disable the option to go up, instead of that, (i want to create handle the scroll up and scroll down to display the inner classes)

For example, i am on .box-a view, (i scroll down and i want to display .second-scroll and then third etc..) and if i scroll up i want the reverse, but user should have the option to see again the .hero section

See the Pen GRQqBEg by skigo (@skigo) on CodePen

Link to comment
Share on other sites

Hello, sure.

I will give an example:

 

we have 2 main sections 100vh each.

when you scroll from the hero to the second, the scroll will be once(snap) like go to.

 

when second option is active, and I need to disable your from going back to the hero section (disappearing hero section) and also while you are in the second section and you scroll up or down to have the callbacks to trigger the content of the second section 

Link to comment
Share on other sites

I read your original question a few times and your followup and I'm still completely lost, sorry. 🤷‍♂️

 

Maybe you're talking about an effect that'd be better suited for Observer plugin if you want things to respond to scroll sometimes but not others (conditional): 

https://greensock.com/docs/v3/Plugins/Observer

 

These forums aren't really for "here are my list of requirements...please show me how to build it" questions, but we're happy to answer any GSAP-specific ones. If you need paid consulting services, you could post in the "Jobs & Freelance" forum. 

 

Good luck!

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...