How to apply multiple transforms in CSS?

前端 未结 7 1445
死守一世寂寞
死守一世寂寞 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:57

    Transform Rotate and Translate in single line css:-How?

    div.className{
        transform : rotate(270deg) translate(-50%, 0);    
        -webkit-transform: rotate(270deg) translate(-50%, -50%);    
        -moz-transform: rotate(270deg) translate(-50%, -50%);    
        -ms-transform: rotate(270deg) translate(-50%, -50%);    
        -o-transform: rotate(270deg) translate(-50%, -50%); 
        float:left;
        position:absolute;
        top:50%;
        left:50%;
        }
    
    
    
    
    
    A

提交回复
热议问题