Jump to content
Search Community

Flashes during scroll in ScrollMagic with smooth-scroll

wizardnet972 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

In my website I want to use smooth-scroll with ScrollMagic.

I follow the examples and the source code from ScrollMagic to integrate custom scrollbar.

The problem is I got a flashes during the scroll. I think this is because smooth-scroll use transform: translate3d(...) and ScrollMagic does top property.

How can you make it work together despite everything?

 

I built an example in Codepen. 

 

See the Pen jvxMjb by shlomilevi (@shlomilevi) on CodePen

Link to comment
Share on other sites

I'm not sure what to tell you on that one as your pen is not using GSAP at all. ScrollMagic can use GSAP, but it is not a GreenSock product. 

 

You'll probably be able to get an answer from the support channels of those two scripts.

https://github.com/idiotWu/smooth-scrollbar/issues

https://github.com/janpaepke/ScrollMagic/issues

 

If you have any GSAP related problems or questions, we're happy to help.

 

Happy tweening.

:)

 

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