CSS 3 animation “transform: scale” on column element doesn't work on chrome

前端 未结 1 1250
囚心锁ツ
囚心锁ツ 2021-01-13 09:27

I encounter an issue in Chrome v44, I tried to zoom in on the image in item of column with a \"transform: scale(1.1)\", the animation doesn\'t work… And if I try on firefox

1条回答
  •  清酒与你
    2021-01-13 09:40

    I found a workaround: -webkit-backface-visibility: hidden; I add this property on image wrapper class ".column-img-wrap" and the image class ".column-img" and it works perfectly !

    .column-img-wrap {
      margin: 0;
      overflow: hidden;
      -webkit-backface-visibility: hidden;
    }
    
    .column-img {
      display: block;
      max-width: 100%;
      transform: scale(1);
      transition: transform .3s ease;
      -webkit-backface-visibility: hidden;
    }
    

    demo: http://codepen.io/nielk/pen/gaOaVz

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