Resizing single shapes dynamically without scaling the whole SVG

后端 未结 5 1135
悲&欢浪女
悲&欢浪女 2021-02-01 22:58

I have an arrow as a SVG which\'s length I want to alter in response to the width of a wrapping DIV (for example).

All my previous attempts have led into this behavior (

5条回答
  •  你的背包
    2021-02-01 23:42

    By using symbol's you can make the shapes you want and just include them in. Then to extend the middle section, just make a new path and make the line longer. They can be positioned wherever you like by using the transform property

    
    
      
        
          
        
      
      
        
          
        
      
    
      
      
        
      
      
        
      
      
      
      
        
      
      
        
      
    
    
    

提交回复
热议问题