Jump to content
Search Community

Problem with ScrollTrigger onLeave

creativefold test
Moderator Tag

Recommended Posts

I have 3 creative scrolling animations on a page and am trying to replace them with a static image once the sequence is complete.

 

So far - I've managed to get the static image to appear HOWEVER when I remove the sequence from the DOM and use the ScrollTrigger.refresh() function, it jumps down the page to the next sequence and the content get's lost.

How do I fix this issue? https://staging2.saltcybersecurity.co.uk/

Link to comment
Share on other sites

Hi @creativefold. Welcome to the forums! 

 

We can't really troubleshoot a live site because there are way too many factors and it's impossible to make tweaks live and see the results (please read the forum guidelines), but we'd be happy to answer any GSAP-specific questions. 

 

If you still need some help, please isolate the issue in a minimal demo and post a link here (like to a CodePen or CodeSandbox) and we'll take a peek. Please don't include your whole site in the demo - just try to reproduce the issue in the simplest possible way (a few basic <div> elements, for example). That'll significantly increase your chances of getting a solid answer. 👍

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