Jump to content
Search Community

Scrolling gradually reduces speed

Andres Moraga 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

Hi!

 

I've been using GSAP for animations on banners and right now I'm having kind of an issue with the ScrollTo plugin, in which the autoscroll reduces its speed while advancing through the text until it completely stops at the end of it. I've looked at the documentation and different examples but I'm not able to get it to scroll consistently until the very end. The code I'm using to create the auto scroll is the following: 

TweenLite.to(simplebar.getScrollElement(), 100, {
  scrollTo: {
    y: 'max'
  },
  ease: Power0.easeNone
});

I'm not sure if I'm doing something wrong or missing something in this case. And by the way the code provided on Codepen is built with GWD.

I hope there is something that can be done here.

 

Thanks in advance,
Andres.

See the Pen xoeWEe by moraguex (@moraguex) on CodePen

Link to comment
Share on other sites

I'm not seeing it slow down. I switched the duration to just a few seconds and the ease to a Power4.easeOut just for testing and that did slow down as it should. But the way you have it posted with no ease seems like it's working correctly.

 

I don't know anything about GWD, but there are some eases in the styles set to easeOut. Maybe those are interfering in your actual project? 

 

Someone else may see something different, but I see everything working exactly as I'd expect here. 

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