Jump to content
Search Community

ScrollSmoother: Flashing Lines or Background Color Between Divs

Benk test
Moderator Tag

Go to solution Solved by GreenSock,

Recommended Posts

Ok, so I have a bunch of sections that are scrolling nicely, but they show a thin line of the background color in Chrome on Mac as you scroll. Tested on Safari and it works as expected.

 

Chrome

Version 108.0.5359.124 (Official Build) (x86_64)

 

MacOS

13.1 (22C65)

See the Pen eYjGpLg?editors=0100 by jimmywilson (@jimmywilson) on CodePen

Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...

I am still having this issue.

 

I've added will-change: transform; to our #smooth-content div as well as ensure gsap.min.js and ScrollTrigger.min.js are using the most recent version (3.12.2) and redownloaded ScrollSmoother.min.js to use the newest version (3.12.2) as well.

 

I'm still getting the flickering between sections, and on horizontal borders and line breaks.  Its seems more predominant in Google Chrome browser (update to date) but am unable to find anything related to this bug in the GSAP forums (beyond this thread).

Any help would be greatly appreciated.

 

Link to comment
Share on other sites

Hi @Blender Media and welcome to the GreenSock forums!

 

Thanks for being a Club GreenSock member and supporting GreenSock!

 

Do you have a minimal demo that we can take a look at?

 

Without something to play with and if the will-change is not working, maybe see if you have a ScrollTrigger instance with some value on scrub other than true. Also try using a negative margin-top of 1px on your elements to see if that helps.

 

Happy Tweening!

  • Like 1
Link to comment
Share on other sites

Hi,

 

This has nothing to do with either GSAP or ScrollSmoother I'm afraid.

 

Removing these styles from your marquee__banner element seems to solve the issue:

.marquee__banner {
  /* animation: scrolling 20s linear infinite; */
  /* animation-play-state: paused; */
  display: flex;
  flex-direction: column;
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 3;
  z-index: 1;
}

 

Hopefully this helps.

Happy Tweening!

Link to comment
Share on other sites

8 minutes ago, Blender Media said:

However, that secondary flashing of the horizontal border on .blender-statistics seems to go away when I remove GSAP.

Remove GSAP from where? The entire project?

 

In the latest update of your codepen I can't see any lines anymore.

 

Unfortunately your example has over 200 lines of HTML and over 1500 lines of CSS, the problem could be somewhere else and we just don't have the time resources to comb through all that in order to find where the issue could be.

 

In the previous iteration I was able to see the line between the top element (with the gray gradient) and the About Us section (white). That line disappeared when I commented out those styles in your CSS. But now that line is gone I can't see it. Also I can't see any other line so I'm a bit lost here.

 

The line in .blender-statistics disappears when you comment out the border-top property ;)

.blender-statistics {
  /* border-top: 1px solid var(--very-light-pink); */
  padding: 56px 0 64px;
}

Happy Tweening!

Link to comment
Share on other sites

@Rodrigo,

 

Thanks for all the help and patience.

 

I appreciate the insights and will keep combing through and trying to figure out the issue.  I removed gsap from the project and the main.js file to see if the flickering stopped.  It seems to be isolated to SmoothScroller but i'll post back here if I figure it out. It seems to only happen in Chrome.

 

Thanks again.

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