user2979139
user2979139

Reputation: 161

Rotate SVG via CSS3 anchor not in the middle

I've designed an SVG in illustrator, and got it rotating with CSS3 but its rotating from top left.

Is there anyway I can set the anchor to the center of the shape?

Thank you!

Upvotes: 2

Views: 384

Answers (1)

fregante
fregante

Reputation: 31858

Transforms in SVG are around the origin (0,0) and there is no transform-origin in SVG yet, like there is in CSS.

There are ways to fake it but they are not that straightforward: How to set transform origin in SVG

Upvotes: 3

Related Questions