Using SVG to animate and flip a hexagon

后端 未结 3 2007
抹茶落季
抹茶落季 2021-01-25 18:33

I have never really used SVGs but reading some tutorials about it now and tested some stuff. I am learning how to make shapes like a hexagon but now need to make it flip down on

3条回答
  •  伪装坚强ぢ
    2021-01-25 19:12

    Here is what I came up with really quick with the info we were given.

    #test:hover
    {
      fill: yellow;
      transform:rotateX(-180deg) translateY(-100%) scale(1.2);
      transition:ease 1s all;
      transform-style: preserve-3d;
      transform-origin: 100%;
    }
    

    Below is the jsfiddle. This may need -webkit modding to be usable on all browsers. https://jsfiddle.net/9xqqc1yk/

提交回复
热议问题