Scale path from center

后端 未结 3 765
渐次进展
渐次进展 2020-12-06 04:37

I have the following SVG graphic:



        
3条回答
  •  暖寄归人
    2020-12-06 05:00

    The answer provided by aetheria earlier is great. There is another thing to take care of as well -- stroke-width, so that the outline stays of the same width while the object scales. Usage:

    stroke-width: (1/scaling-factor)
    

    So, if your scaling is by say 2, then:

    stroke-width: (0.5)
    

    NOTE: You shouldn't missout the transform: translate(...) scale(2) as mentioned by aetheria.

提交回复
热议问题