boron icon indicating copy to clipboard operation
boron copied to clipboard

forced use of translate3d causes css blurriness

Open justin-hackin opened this issue 9 years ago • 5 comments

A well-known issues with translate3d is that it causes text to be blurred. See : http://stackoverflow.com/questions/8024061/webkit-blurry-text-with-css-scale-translate3d

Unfortunately, it seems that all of the transition modals, even if they don't need a 3d translate, have one. You can see a noticeable difference when I unchecked the transform style in one of these screenshots.

screenshot from 2016-02-22 15 04 26 screenshot from 2016-02-22 15 03 23

justin-hackin avatar Feb 22 '16 20:02 justin-hackin

It is much more pronounced on my screen than in the screenshots ...

justin-hackin avatar Feb 22 '16 20:02 justin-hackin

A workaround is to use ScaleModal add

'transform':'translate(-50%, -50%)'

into your modalStyle (assuming you want it centered) and this will break animations but at least it shows properly

justin-hackin avatar Feb 22 '16 20:02 justin-hackin

+1

ahmedlhanafy avatar Sep 08 '16 08:09 ahmedlhanafy

+1

alanqthomas avatar Feb 14 '17 20:02 alanqthomas

I have the same problem but the solution seems inconsistent. In some situations it removes the blur, but sometimes it doesn't. For example:

image

ghost avatar Jul 28 '17 09:07 ghost