Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Frans

disable reverse

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

×