Style SVG circle with CSS

后端 未结 11 1615
时光取名叫无心
时光取名叫无心 2020-12-14 01:03

So I have my SVG-circle.


   
         


        
11条回答
  •  南笙
    南笙 (楼主)
    2020-12-14 01:44

    As Phillip suggested in the comment above you can do this with CSS 3 transform.

      circle:hover {
        -webkit-transform: scale(x, y);
      }
    

    ("-webkit" prefix is for Chrome only)

    See https://developer.mozilla.org/en-US/docs/Web/CSS/transform

    Here's a working example with CSS transitions too: http://jsbin.com/sozewiso/2

提交回复
热议问题