I am trying to scale nodes (circle tags) in D3 force layout with CSS, like this
circle:hover {
-webkit-transform: scale(1.5, 1.5);
}
The node is scaled, but it also moves away from upper left corner the same amount, like the whole layer was scaled. Nothing else (except the node) is scaled however.
I have no example to show at the moment. I would be glad for suggestions about what is going on there.
I got the idea from the answer by Jonathan Sewell here:
UPDATE: I forked a fiddle and added the transform. So here is a live example: http://jsfiddle.net/UagSD/3/