【问题标题】:Why does SVG get blurred when scaled under webkit browsers?为什么在 webkit 浏览器下缩放 SVG 会变得模糊?
【发布时间】:2014-12-18 05:35:42
【问题描述】:

使用 CSS 缩放变换缩放 SVG 图像时,图像在 Chrome 或 Safari 下变得模糊?

这是我的一些代码:

        #logo {
            animation: cssAnimation 120s infinite;
            -webkit-animation: cssAnimation 120s infinite;
            -moz-animation: cssAnimation 120s infinite;
        }

        @keyframes cssAnimation {
            0% { transform: scale(1) }
            50% { transform: scale(2) }
            100% { transform: scale(1); }
        }

非常感谢您的帮助!

拉斐尔

【问题讨论】:

标签: css animation svg webkit


【解决方案1】:

非常感谢 War10ck!这篇文章帮助了我:when scaling an element with css3 scale, it becomes pixelated until just after the animation is complete. I'm animating an element with a border 使用 scale3d 而不是 scale,不超过 1,成功了!

【讨论】:

    猜你喜欢
    • 2021-10-20
    • 2012-04-21
    • 2020-04-29
    • 1970-01-01
    • 2014-10-24
    • 1970-01-01
    • 2016-05-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多