Remove applied CSS transformation

前端 未结 3 1597
小鲜肉
小鲜肉 2021-01-07 18:53

I have applied -webkit-transform:rotateY(180deg); to flip an image. I am applying -webkit-transform:rotateY(0deg); to rotate it back t

3条回答
  •  死守一世寂寞
    2021-01-07 19:16

    just do this:

    .transition {
      -webkit-transform: rotateY(180deg);
      transform: rotateY(180deg);
    }
    
    .notransition {
      -webkit-transform: none;
      transform: none;
    }
    

    none seems to be the default value

提交回复
热议问题