on Chrome, transformed img is flickering if an element has background half-cover it

I'm building a 3d gallery, everything works fine until the sticky menu bar appears. The images under the menu bar is flickering only on Chrome. Here's a video:
16 Replies
Trung D.
Trung D.OP•10mo ago
adding -webkit-backface-visibility is not working, and I don't think it's relevant to this issue
MarkBoots
MarkBoots•10mo ago
Could be a lot of things, maybe just a rendering issue for chrome (transforms can be heavy). To be able for us to help, we'll need to see some code, preferably in a working codepen/sandbox. (only the relevant part please)
Trung D.
Trung D.OP•10mo ago
https://codepen.io/c-Trung-Ng-/pen/VwRyLPj here's a minimal reproduce I made
MarkBoots
MarkBoots•10mo ago
not exactly sure why it was flashing, but based on your example, i made it how i would do it. https://codepen.io/MarkBoots/pen/QWoabzz?editors=1100 i did create a separate wrapper to only control the rotation. so not on the scene itself
Trung D.
Trung D.OP•10mo ago
wow you're awesome so adding a little opacity fixes it?
MarkBoots
MarkBoots•10mo ago
no its not about the opacity. i only did it to see what was happening
Trung D.
Trung D.OP•10mo ago
if I remove the opacity value, it still flicker somewhere
MarkBoots
MarkBoots•10mo ago
hm 🤔 not happening at my side
Jochem
Jochem•10mo ago
It could be a driver issue if opacity fixes it and it works fine on Mark's machine I had weird issues that were fixed by setting a tiny amount of opacity in Blender (totally not CSS related), which caused the graphics card driver to use a different render mode and fixed flickering and garbled image areas if you set it to 99.9% and it works, then to 100% and it flickers, try on a different machine
MarkBoots
MarkBoots•10mo ago
yea, i notice it now too. when i increase the number of slides, it does happen to me as well
Jochem
Jochem•10mo ago
then very much ignore what I said, that's not a rabbit hole you want to go down
Trung D.
Trung D.OP•10mo ago
I set the opacity to 0.999999 and it works amazing
MarkBoots
MarkBoots•10mo ago
you were totally right. i do remember reading something about the used graphics card in combination with transforms and stuff
Trung D.
Trung D.OP•10mo ago
I'm using mac pro m2, my friend on mac air m1 get the same problem
MarkBoots
MarkBoots•10mo ago
btw, i updated the pen to hold multiple rows
Trung D.
Trung D.OP•10mo ago
thank you guys for helping this also worth to take into consider sometime thank you
Want results from more Discord servers?
Add your server