How do you animate an SVG path in IOS?

后端 未结 3 2432
灰色年华
灰色年华 2020-12-08 08:35

I have an SVG path like this:



        
3条回答
  •  旧时难觅i
    2020-12-08 09:27

    I tried for a long while to do this without having to add extra scripts to the header (that I have no idea of javascript didn't help), so here's the solution:

    
      
    
    

    I added extra line breaks for readability here.

    This is legal in SVG (although not in HTML) because the svg:animate element allows onload, which most HTML elements do not.

提交回复
热议问题