Jump to content
Search Community

GSAP Pinned Scrolling Reveal Sequence - Clickable Links Issue

Alexo test
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

Hi Team,

 

Would have re-opened my last post about working on this scroll sequence but cannot find it on the new forum/site 😕

 

Anyway, I have been struggling with finding the 'best' approach to tackling pinned elements that need to have clickable links. If you refer to the pen and see the left text #Link3 will show in its place (no matter what section you are pinned on). As it is pinning the last element (section 3) on top of sections 1 and 2.

 

I have tried a few routes in my actual project:

  • Script to get the opacity of the element, then IF > 0.5 then set that on top using z-index.
  • A second hidden gasp scroller without any pins and instead just covers the rough area with #hrefs at 100vh each

The first option works but results in the image masks bugging out over each other, any more 'elegant' approach to tackle this issue would be much appreciated!

 

Credits to @Cassie again for her amazing SVG revealer pen's very helpful and other scroll demos that are similar to this

 

Cheers

Alex

See the Pen abQJPOz by alex-rankin (@alex-rankin) on CodePen

Link to comment
Share on other sites

  • Solution

Hi @Alexo

 

you can find your post in your profile https://gsap.com/community/profile/139256-alexo/content/

 

I've set your .fluid-reveal__item to  pointer-events: none; by default and then when the animate in I set them to             pointerEvents: "auto" and when they animate away again back to none, this seems to work. There is no logic to scroll to that place on the page, so you still need to implement that, but I hope this gets you off the ground. 
 

See the Pen zYexREB?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen

 

There are loads of examples out there that scroll inside ScrollTrigger most of them use the SrollToPlugin (https://gsap.com/docs/v3/Plugins/ScrollToPlugin)

 

Hope it helps and happy tweening! 

 

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

 

  • Like 3
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...