Jump to content
Search Community

ScrollTrigger scrolling to top, animation disappears the content

ud907 test
Moderator Tag

Recommended Posts

Hi, 

 

I am very new to this amazing animation platform. I am having an issue which i have not been able to solve. As you can see on my codepen link, the animation when scrolling to the top, The content disappears with the similar animation. I don't feel that would be a great showcase to show it to my client. Can you please help ? 

See the Pen xxVxqvp by umanga (@umanga) on CodePen

Link to comment
Share on other sites

16 minutes ago, anton123 said:

Add "once: true" to your scrollTrigger. The elements will stay visible if you scoll back up

 


scrollTrigger: {
    trigger: ".section-second",
    pin: true,
    start: "top top",
    end: "+=500",
    scrub: 1,
    once: true
}

 

Thanks, that was what i was looking for but unfortunately the height of the animation stays  keeping a huge height between the section. How do we get that to normal ? 

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