Jump to content
Search Community

ScrollTrigger - Boxed slider reveal effect

BSA test
Moderator Tag

Recommended Posts

Hey @Cassie

 

Thanks for your quick answer ^^ I was not ready :)
Your approach is near the perfection !

 

But i still have some misunderstanding :s

When i'll tried to put some content above it's ok but under the "panels" the end is not reached..
I make two main content with a "immediate snap" (that work fine) but inside the seconde one with the "panels" i'll try to do a another "immediate snap on each scroll" with the panels then the rest of the content.

 

Here is the little buggy demo pen : 

See the Pen abLNzaN by Brunoooo (@Brunoooo) on CodePen

Link to comment
Share on other sites

Heya! 

 

So the 'end' position for the layered boxes was set to 'max' which is the very end of the body. So that section was never unpinning, and you wouldn't see the following section.

Here - if I set it to a px value you can see the footer

See the Pen zYEqGep?editors=0010 by GreenSock (@GreenSock) on CodePen



Also - I'm wondering why you're using scrollTo and a snap scrollTrigger for the sections? You should only need one of those approaches I think, they're achieving the same goal I think - unless I'm missing something.

Link to comment
Share on other sites

Heyy, thanks @Cassie

I use the first scrollTo and a snap scrollTrigger for the purpuse of the project ^^ (a bit weird, i know..)

 

So now everyting is almost ok.. 

The last thing is to snap each panels like the two "main". (prevent the default scroll) just go up if scroll up and down if scroll down.

Sorry for my misunderstanding.. It's my first time with scrollTrigger.

Link to comment
Share on other sites

Hello @Cassie,

Thanks for your sharing ;)

 

But it's not what i'm lookin for.. I've updated the codePen ^^

There is only one thing left, make the same "snap" like the blue section to the panels section.
For now, i prevent large scroll with a end at 5000%. But sometimes he pass two panels and is not immediate snap.  I just want to navigate between the slides. (Don't know if i'm clear)

 

Can u help me for the end of my quest :D

 

See the Pen abLNzaN by Brunoooo (@Brunoooo) on CodePen

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