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 lines 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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

dataset - MPAndroidchart returning no chart Data available -

post - imageshack API cURL -