O
O
Oleg Mikhailov2017-02-05 13:46:26
css
Oleg Mikhailov, 2017-02-05 13:46:26

Blurry images with css-transform in mobile Safari. Has anyone come across?

Hello!
Faced the problem of blurry pictures, to which css transformation is applied.
Reduced my case to this:

<!DOCTYPE html>
<html>
    <head>
        <meta name="viewport" content="user-scalable=no, initial-scale=0.55, maximum-scale=0.55, minimum-scale=0.55, width=device-width">

        <style>
            body {
                width: 100%;
                height: 100%;
            }
            .img {
                width: 64px;
                height: 64px;
                background-image: url(http://sa-timetobehero-2reallife.netdna-ssl.com/ds1/items/potions/1_winter_event_shield_60_60.jpg);
                background-size: 64px;
            }
            .img_transform {
                transform: translate3d(0,0,0);
                -webkit-backface-visibility: hidden;
                backface-visibility: hidden;
            }
        </style>
    </head>
    <body>
        <div class="img"></div>
        <div class="img img_transform"></div>
    </body>
</html>

As a result, the second image looks blurry in mobile safari.
Screenshot of the result:
4030db1e3a6c4caeae367583461389a0.png
On the Internet they say that this is treated with the backface-visibility property. I put it where I could - it does not help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
WQP, 2017-02-05
@WQP

Try asking will-change: transform;the classimg_transform

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question