Rotate SVG line around center using CSS -
i'm trying animate svg go being plus minus. when clicked, rotate whole svg , change color. make 1 of line
s svg scale 0.
you can see here: http://codepen.io/nonimage/pen/rrekpw
however, you'll see, line scales 0 moves off upper right corner. want scale while staying in center.
what doing wrong?
instead of this:
.add-remove.remove .inner__1 { transform: scale(0); transform-origin: center center; }
use this:
.inner__1 { transform-origin: center center; } .add-remove.remove .inner__1 { transform: scale(0); }
Comments
Post a Comment