Slow CSS Filters on iPhone?

前端 未结 1 392
野趣味
野趣味 2021-01-15 06:03

I have a div with this css class:

.pos {
    -webkit-filter: brightness(0.5);
    -moz-filter: britghtness(0.5);
    -o-filter: brightness(0.5);
    -ms-filt         


        
相关标签:
1条回答
  • 2021-01-15 06:29

    I found the solution here: http://indiegamr.com/ios6-html-hardware-acceleration-changes-and-how-to-fix-them/

    It's about adding these proprieties:

    -webkit-transform: translateZ(0);
    -webkit-perspective: 1000;
    -webkit-backface-visibility: hidden;
    

    Hope this will help!

    0 讨论(0)
提交回复
热议问题