Jump to content
Search Community

Chrome flickering issue that "will-change:opacity" doesn't solve

sashaikevich test
Moderator Tag

Recommended Posts

As my animation runs, and the layers transition through their x, y, z rotations and font size (which does something fun with the perspective) I"m getting this weird flicker in Chrome that I've noticed in the last 24 hours. 


I've learned here, that flickering might be a chrome bug, but the "will-change" fix didn't do it for me there. Is there anything else you guys can think of for me to try?

 

I set up a demo of just the problematic component, but the flickering isn't there 100% of the time: 

See the Pen poymMvK?editors=0010 by sashaikevich (@sashaikevich) on CodePen

 

 

See the Pen poymMvK by sashaikevich (@sashaikevich) on CodePen

Link to comment
Share on other sites

Hey sashaikevich. I'm not seeing any flickering on my device. You can try will-change: transform, opacity;. Maybe try force3d: true in your .set("#tilt-wrapper .tidy-team-layered-wrapper". Maybe try using less layers.  Maybe try not animating the opacity at all. Maybe try dropping the effect completely ;) 

 

It's definitely not a GSAP issue. Best of luck debugging it!

  • Like 1
Link to comment
Share on other sites

Thanks for the quick reply and the ideas.

 

The will-change didn't help. Nor did force3d

Oddly adding a width did, which is what I might have had when you loaded the animation. 

 

This simple line fixed it in my demo

.tidy-team-layered-wrapper {
  width: 70vmin;

But in my project the flickering remained, so width is not enough. Though why that of all things fixed the flicker I do not know. Gha!

(I removed it from the demo, so the issue should be visible 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...