The applying order of SVG transforms

前端 未结 2 1320
無奈伤痛
無奈伤痛 2021-02-04 02:42

In W3C\'s spec, it says:

The value of the ‘transform’ attribute is a , which is defined as a list of transform definitions, which are a

2条回答
  •  自闭症患者
    2021-02-04 03:22

    If you want to sequentially change these transformations 
    you have to try this one
    
    
    
    function changeTransfrom(evt)
    {
    var id=evt.target;
    id.setAttribute('transform',scale(0.5));
    id.setAttribute('transform',rotate(30));
    id.setAttribute('transform',skewY(45));
    id.setAttribute('transform',matrix(2,2));
    }
    

提交回复
热议问题