Jump to content
Search Community

disable reverse

Frans test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hello, i am new to superscrollorama. 

I want to disable an animation when you scroll up. 

I found the code on the website but it doesn't work for me:

 

The 5th parameter is reverse, which you can use to disable reverse animation.

controller.addTween('#fade', 
  TweenMax.from($('#fade'),.5,{
    css:{opacity:0}}),
    200, 
    false); // prevent backwards animation of the element

What am i doing wrong?

 

Frans

Link to comment
Share on other sites

Hi Frans,

 

I'm presuming that your animation is reversing when you scroll up and by looking at your code it shouldn't be happening.

 

Could you set up a live sample, fiddle or codepen in order to look at the complete code?, is hard to pin point any issue if we don't know what we're looking at.

 

Cheers,

Rodrigo.

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