SVG + css3 animation not working with link markup

后端 未结 1 1555
盖世英雄少女心
盖世英雄少女心 2020-12-10 05:51

Hi folks!

I\'ve been reading the awesome article "Using SVG" from Chris Coyer (http://css-tricks.com/using-svg/), and deci

1条回答
  •  抹茶落季
    2020-12-10 06:46

    This can be done using pure CSS3 and HTML5. The trick is to embed the link inside the svg by using the xlink element with the target set to parent:

    
        
            
            
        
    
    

    The two important bits:

    1. The xmlns:xlink="http://www.w3.org/1999/xlink" namespace.

    2. The actual link:

    Note: This method has only been tested using the method of embedding the SVG.

    0 讨论(0)
    提交回复
    热议问题