Jump to content
Search Community

ScrollTrigger not working with smoothscrollbar.js

pepethefroggg test
Moderator Tag

Go to solution Solved by OSUblake,

Recommended Posts

So I was trying to add gsap to a website where I'm already using smoothscrollbar.js from idiotWu. 

As you can see from the codepen the scrollers scroll with the rest of the page, without giving me the chance to trigger the animation.

 

I tried to move things around, like choosing a different DOM element as scrollbar, or loading gsap before smoothscrollbar and others.

I just can't find a way to keep both smoothscrollbar.js and gsap in the same project

See the Pen vYmKoNo by pepethefroggg (@pepethefroggg) on CodePen

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