How to apply multiple transforms in CSS?

前端 未结 7 1441
死守一世寂寞
死守一世寂寞 2020-11-22 06:09

Using CSS, how can I apply more than one transform?

Example: In the following, only the translation is applied, not the rotation.

li:nth         


        
7条回答
  •  醉酒成梦
    2020-11-22 06:56

    You can apply more than one transform like this:

    li:nth-of-type(2){
        transform : translate(-20px, 0px) rotate(15deg);
    }
    

提交回复
热议问题