19
19

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ChromeでCSS Transform使用時にエッジがジャギった時

Posted at

chromeでcss transformを使用して、要素の傾きなどを変更すると
エッジがジャギる時がある

##sample code

#test {
	 -webkit-transform: skewY(-9.5deg);
       -moz-transform: skewY(-9.5deg);
        -ms-transform: skewY(-9.5deg);
            transform: skewY(-9.5deg);    
}

chrome

スクリーンショット 2014-10-20 18.16.53.png

safari

スクリーンショット 2014-10-20 18.16.30.png

firefox

スクリーンショット 2014-10-20 18.18.00.png

解決方法

該当要素に -webkit-backface-visibility: hidden;をいれることで解決する。

#test {
	 -webkit-transform: skewY(-9.5deg);
       -moz-transform: skewY(-9.5deg);
        -ms-transform: skewY(-9.5deg);
            transform: skewY(-9.5deg); 
	 -webkit-backface-visibility: hidden;   
}

chrome

スクリーンショット 2014-10-20 18.20.11.png

19
19
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
19

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?